When player is to high, camera follows
Textures can be repeated over entity
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
uniform mat4 mvpMatrix;
|
||||
uniform mat4 transformationMatrix;
|
||||
uniform vec2 texCoordScaling;
|
||||
|
||||
attribute vec4 position;
|
||||
attribute vec2 texCoords;
|
||||
@ -11,5 +12,9 @@ void main() {
|
||||
vec4 transformatedPosition = transformationMatrix * position;
|
||||
gl_Position = mvpMatrix * transformatedPosition;
|
||||
pass_TexCoords = texCoords;
|
||||
if(texCoordScaling.x != 0.0)
|
||||
pass_TexCoords.x *= texCoordScaling.x;
|
||||
if(texCoordScaling.y != 0.0)
|
||||
pass_TexCoords.y *= texCoordScaling.y;
|
||||
|
||||
}
|
Reference in New Issue
Block a user