Skip to content
Snippets Groups Projects
Commit 704482d6 authored by Sebastian Gaida's avatar Sebastian Gaida
Browse files

[#87] add dummy output in vertex shader

parent 3d918289
No related branches found
No related tags found
1 merge request!74Resolve "Mesh Shader Implementation"
Pipeline #26375 passed
...@@ -5,6 +5,7 @@ layout(location = 0) in vec3 inPosition; ...@@ -5,6 +5,7 @@ layout(location = 0) in vec3 inPosition;
layout(location = 1) in vec3 inNormal; layout(location = 1) in vec3 inNormal;
layout(location = 0) out vec3 passNormal; layout(location = 0) out vec3 passNormal;
layout(location = 1) out uint dummyOutput;
layout( push_constant ) uniform constants{ layout( push_constant ) uniform constants{
mat4 mvp; mat4 mvp;
...@@ -12,5 +13,6 @@ layout( push_constant ) uniform constants{ ...@@ -12,5 +13,6 @@ layout( push_constant ) uniform constants{
void main() { void main() {
gl_Position = mvp * vec4(inPosition, 1.0); gl_Position = mvp * vec4(inPosition, 1.0);
dummyOutput = 0;
passNormal = inNormal; passNormal = inNormal;
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment