Tech ENABLE_GLBEGIN_GLEND_SHADERS_ATTRIBUTES - Use vertex attributes and matrices in shaders.
Refactoring of flat vertex shader
This commit is contained in:
parent
f9cabee382
commit
31013fb6df
17 changed files with 122 additions and 72 deletions
|
@ -2,9 +2,10 @@
|
|||
|
||||
attribute vec3 v_position;
|
||||
|
||||
uniform mat4 projection_view_model_matrix;
|
||||
uniform mat4 view_model_matrix;
|
||||
uniform mat4 projection_matrix;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = projection_view_model_matrix * vec4(v_position, 1.0);
|
||||
gl_Position = projection_matrix * view_model_matrix * vec4(v_position, 1.0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue