mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 22:54:53 +02:00
Resolve "Merge the best from 7.40 branch"
This commit is contained in:
14
SabrehavenOTClient/data/shaders/map_default_vertex.frag
Normal file
14
SabrehavenOTClient/data/shaders/map_default_vertex.frag
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
attribute vec2 a_Vertex;
|
||||
attribute vec2 a_TexCoord;
|
||||
|
||||
uniform mat3 u_TransformMatrix;
|
||||
uniform mat3 u_ProjectionMatrix;
|
||||
uniform mat3 u_TextureMatrix;
|
||||
varying vec2 v_TexCoord;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = vec4((u_ProjectionMatrix * u_TransformMatrix * vec3(a_Vertex.xy, 1.0)).xy, 1.0, 1.0);
|
||||
v_TexCoord = (u_TextureMatrix * vec3(a_TexCoord,1.0)).xy;
|
||||
}
|
Reference in New Issue
Block a user