Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders. 1st installment.
Shader: flat - Default bed
This commit is contained in:
parent
2379588196
commit
a5ff37013b
6 changed files with 105 additions and 13 deletions
10
resources/shaders/flat_attr.vs
Normal file
10
resources/shaders/flat_attr.vs
Normal file
|
@ -0,0 +1,10 @@
|
|||
#version 110
|
||||
|
||||
attribute vec3 v_position;
|
||||
|
||||
uniform mat4 projection_view_model_matrix;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = projection_view_model_matrix * vec4(v_position, 1.0);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue