generated from Persson-dev/OpenGLComputeShader
working project
This commit is contained in:
15
Shaders/Vertex.glsl
Normal file
15
Shaders/Vertex.glsl
Normal file
@@ -0,0 +1,15 @@
|
||||
#version 460 core
|
||||
|
||||
layout(location = 0) in vec2 a_Position;
|
||||
|
||||
layout(std430, binding = 3) buffer layoutName
|
||||
{
|
||||
vec2 data_SSBO[];
|
||||
};
|
||||
|
||||
out vec2 v_TexCoord;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(data_SSBO[gl_InstanceID], 0.0, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user