In EditorGUI Texture2D is dark.
Only one image is normal. Image 2 is correct. 1. EditorGUILayout.LabelField(new GUIContent(imageHolder), GUILayout.Width(1920f / 8f), GUILayout.Height(1080f / 8f)); 2. EditorGUI.DrawPreviewTexture(new Rect(0f, 60f + 1080f / 8f, 1920f / 8f, 1080f / 8f), imageHolder); 3. GUI.DrawTexture(new Rect(0f, 70f + (1080f / 8f)2f, 1920f / 8f, 1080f / 8f), imageHolder); 4. Graphics.DrawTexture(new Rect(0f, 80f + (1080f / 8f) 3f, 1920f / 8f, 1080f / 8f), imageHolder);
I dont understand why this images are so dark. Source image is much more bright.
Answer by Han-Wen · Feb 15 at 03:05 AM
I have the same problem, do anyone know how to fix it without using DrawTextureTransparent ? I want to use custom shader.
Your answer
![](https://koobas.hobune.stream/wayback/20220612145814im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Duplicate Texture in Editor 1 Answer
OpenGL textures always show up black 0 Answers
How to draw a texture on another texture 0 Answers
How to get rgb from Texture2D faster? 0 Answers
Different textures on different meshes but same material 0 Answers