mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-09 20:10:06 +00:00
5340752190
Avoid adding global uniform blocks to stages that don't already have it. Otherwise multiple stages point to the same block object, and a remapping that occurs later on will change the mapping on multiple stages.
14 lines
181 B
GLSL
Executable File
14 lines
181 B
GLSL
Executable File
#version 460
|
|
|
|
layout(location = 0) out vec4 fragColor;
|
|
|
|
uniform sampler2D sTexture;
|
|
|
|
in vec4 Color;
|
|
in vec2 UV;
|
|
|
|
void main()
|
|
{
|
|
fragColor = Color * texture(sTexture, UV.st).r;
|
|
}
|