diff options
Diffstat (limited to '')
-rw-r--r-- | cwd/shaders/block.gs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/cwd/shaders/block.gs b/cwd/shaders/block.gs new file mode 100644 index 0000000..17d61c3 --- /dev/null +++ b/cwd/shaders/block.gs @@ -0,0 +1,32 @@ +#version 330 core + +in gl_Vertex +{ + vec4 gl_Position; + float gl_PointSize; + float gl_ClipDistance[]; +} gl_in[]; + +in VS_OUT { + vec2 UvPosition; + vec3 FragmentPosition; + flat int Block; + flat int State; + vec4 ndcPos; +} gs_in[]; + +out GS_OUT { + vec2 UvPosition; + vec3 FragmentPosition; + flat int Block; + flat int State; + vec4 ndcPos; +} gs_out[]; + +void main() { + gs_out[0].UvPosition = gs_in[0].UvPosition; + gs_out[0].FragmentPosition = gs_in[0].FragmentPosition; + gs_out[0].Block = gs_in[0].Block; + gs_out[0].State = gs_in[0].State; + gs_out[0].ndcPos = gs_in[0].ndcPos; +}
\ No newline at end of file |