DefaultColor respects flag_colorTexture;

This commit is contained in:
bjorn 2022-09-02 15:07:45 -07:00
parent ea30100c31
commit 0b0faf6dc6
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ layout(location = 14) in vec3 Tangent;
#define CameraPositionWorld (-View[3].xyz * mat3(View))
#define DefaultPosition (ClipFromLocal * VertexPosition)
#define DefaultColor (Color * getPixel(ColorTexture, UV))
#define DefaultColor (flag_colorTexture ? (Color * getPixel(ColorTexture, UV)) : Color)
#endif
// Constants