This commit is contained in:
2025-11-11 17:22:55 +00:00
parent c5034b3c4c
commit 4d59d521ac
6 changed files with 35 additions and 57 deletions
-13
View File
@@ -1,13 +0,0 @@
#version 450 core
layout(points) in;
layout(triangle_strip, max_vertices = 4) out;
layout(std140, binding = 0) uniform TheMat { mat4 theMat; };
void main() {
vec2 p1 = gl_in[0].gl_Position.xy;
vec2 p2 = gl_in[0].gl_Position.zw;
gl_Position = theMat * vec4(p1,100,1); EmitVertex();
gl_Position = theMat * vec4(p1,5000,1); EmitVertex();
gl_Position = theMat * vec4(p2,100,1); EmitVertex();
gl_Position = theMat * vec4(p2,5000,1); EmitVertex();
EndPrimitive();
}
-5
View File
@@ -1,9 +1,4 @@
#version 450 core
//layout (location = 0) in vec4 poss;
//void main()
//{
// gl_Position = poss;
//}
struct PosTex { vec4 pospos; vec4 texang; };
layout (std140, binding = 0) uniform TheMat { mat4 theMat; } ;
layout (std430, binding = 2) readonly buffer Pos { PosTex data[]; };