Shader compilation, uniforms, vertex buffers and notes.
This commit is contained in:
15
assets/shaders/glsl/color_from_uniform.frag
Normal file
15
assets/shaders/glsl/color_from_uniform.frag
Normal file
@@ -0,0 +1,15 @@
|
||||
#version 460
|
||||
|
||||
layout(set = 3, binding = 0)
|
||||
uniform Parameters
|
||||
{
|
||||
vec4 u_color;
|
||||
};
|
||||
|
||||
layout(location = 0)
|
||||
out vec4 o_color;
|
||||
|
||||
void main()
|
||||
{
|
||||
o_color = u_color;
|
||||
}
|
||||
8
assets/shaders/glsl/triangles_from_buffer.vert
Normal file
8
assets/shaders/glsl/triangles_from_buffer.vert
Normal file
@@ -0,0 +1,8 @@
|
||||
#version 460
|
||||
|
||||
layout(location = 0) in vec2 i_position;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4(i_position, 0.0, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user