Clear up the projection definition

This commit is contained in:
Gustas
2023-09-16 17:49:36 +03:00
committed by Matthias Mailänder
parent 79b10ba9a5
commit c009f58980
2 changed files with 8 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
#version {VERSION}
uniform vec3 Scroll;
uniform vec3 r1, r2;
uniform vec3 p1, p2;
#if __VERSION__ == 120
attribute vec3 aVertexPosition;
@@ -116,7 +116,7 @@ vec4 SelectPalettedFraction(float x)
void main()
{
gl_Position = vec4((aVertexPosition - Scroll) * r1 + r2, 1);
gl_Position = vec4((aVertexPosition - Scroll) * p1 + p2, 1);
vTexCoord = aVertexTexCoord;
vTexMetadata = aVertexTexMetadata;