Updated duck scene

Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
2021-06-26 23:55:45 +02:00
parent eb27ae4c24
commit 32678e3422
3 changed files with 12 additions and 53 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ void main()
uint index = IndexBuffers[ PushConstants.indexBufferIndex ].indices[gl_VertexIndex];
Vertex vertex = VertexBuffers[ PushConstants.vertexBufferIndex ].vertices[ index ];
color = texture(texSampler[0],vertex.uv[0]).xyz;
color = texture(texSampler[material.index],vertex.uv[0]).xyz;
normal = vertex.normal.xyz;
gl_Position = Camera.projection * Camera.view * PushConstants.render_matrix * vec4(vertex.position.xyz, 1.0);