Vertex pull fullscreen lighting texture shader

This commit is contained in:
2025-11-13 10:28:34 +00:00
parent b012d3c41e
commit 8dee93991a
6 changed files with 28 additions and 21 deletions
+3 -4
View File
@@ -1,9 +1,8 @@
#version 450 core
layout (location = 0) in vec2 pos;
layout (location = 1) in vec2 texPos;
layout (std140, binding = 2) uniform PosTex { vec4 posTex[6]; };
out vec2 vTexPos;
void main()
{
gl_Position = vec4(pos,0,1);
vTexPos = texPos;
gl_Position = vec4(posTex[gl_VertexID].xy,0,1);
vTexPos = posTex[gl_VertexID].zw;
}