mirror of
https://github.com/QIDITECH/QIDIStudio.git
synced 2026-01-31 08:58:42 +03:00
update resources
This commit is contained in:
16
resources/shaders/110/flat_texture.vs
Normal file
16
resources/shaders/110/flat_texture.vs
Normal file
@@ -0,0 +1,16 @@
|
||||
#version 110
|
||||
|
||||
attribute vec3 v_position;
|
||||
attribute vec2 v_tex_coord;
|
||||
|
||||
uniform mat4 view_model_matrix;
|
||||
uniform mat4 projection_matrix;
|
||||
uniform mat3 u_uvTransformMatrix;
|
||||
|
||||
varying vec2 v_texcoord;
|
||||
|
||||
void main()
|
||||
{
|
||||
v_texcoord = (u_uvTransformMatrix * vec3(v_tex_coord, 1.0)).xy;
|
||||
gl_Position = projection_matrix * view_model_matrix * vec4(v_position, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user