Implemented rotating cube.
This commit is contained in:
23
assets/shaders/glsl/textured_3dtriangles_from_buffer.vert
Normal file
23
assets/shaders/glsl/textured_3dtriangles_from_buffer.vert
Normal file
@@ -0,0 +1,23 @@
|
||||
#version 460
|
||||
|
||||
layout(set = 1, binding = 0)
|
||||
uniform Parameters
|
||||
{
|
||||
mat4 u_worldToView;
|
||||
mat4 u_viewToClip;
|
||||
};
|
||||
|
||||
layout(location = 0)
|
||||
in vec3 i_position;
|
||||
|
||||
layout(location = 1)
|
||||
in vec2 i_texCoord;
|
||||
|
||||
layout(location = 0)
|
||||
out vec2 o_texCoord;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = u_viewToClip * u_worldToView * vec4(i_position, 1.0);
|
||||
o_texCoord = i_texCoord;
|
||||
}
|
||||
Reference in New Issue
Block a user