forked from maikramer/Materialize
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Materialize/Assets/Scripts/MainGui.cs
Lines 884 to 890 in 5dcea27
| for (int x = 0; x < TempMap.width; x++) | |
| { | |
| for (int y = 0; y < TempMap.height; y++) | |
| { | |
| theColour.r = TextureRed == null ? TextureRed.GetPixel(x, y).grayscale : new Texture2D(TempMap.width,TempMap.height).GetPixel(x,y).grayscale; | |
| theColour.g = TextureGreen == null ? TextureGreen.GetPixel(x, y).grayscale : new Texture2D(TempMap.width, TempMap.height).GetPixel(x, y).grayscale; | |
| theColour.b = TextureBlue == null ? TextureBlue.GetPixel(x, y).grayscale : new Texture2D(TempMap.width, TempMap.height).GetPixel(x, y).grayscale; |
That's not the most efficient way of setting static color values as fallback for missing textures... ;)
Metadata
Metadata
Assignees
Labels
No labels