File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ in vec4 rteVertexColor;
6
6
7
7
out vec2 textureUV;
8
8
out vec4 vertexColor;
9
- // uniform mat4 rteModelViewProjection ;
9
+ uniform mat4 rteView ;
10
10
uniform mat4 rteProjection;
11
11
12
12
void main() {
13
- gl_Position = rteProjection * vec4 (rteVertexPosition, 1.0 );
13
+ gl_Position = rteProjection * rteView * vec4 (rteVertexPosition, 1.0 );
14
14
textureUV = rteVertexTexUV;
15
15
vertexColor = rteVertexColor;
16
16
}
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ in vec4 rteVertexColor;
7
7
out vec2 textureUV;
8
8
out vec4 vertexColor;
9
9
10
- uniform mat4 rteModel ;
10
+ uniform mat4 rteView ;
11
11
uniform mat4 rteProjection;
12
12
13
13
void main() {
14
- gl_Position = rteProjection * rteModel * vec4 (rteVertexPosition, 1.0 );
14
+ gl_Position = rteProjection * rteView * vec4 (rteVertexPosition, 1.0 );
15
15
vertexColor = rteVertexColor;
16
16
textureUV = rteVertexTexUV;
17
17
}
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ in vec2 rteVertexTexUV;
5
5
6
6
out vec2 textureUV;
7
7
8
- uniform mat4 rteModel ;
8
+ uniform mat4 rteView ;
9
9
uniform mat4 rteProjection;
10
10
11
11
void main() {
12
- gl_Position = rteProjection * rteModel * vec4 (rteVertexPosition, 1.0 );
12
+ gl_Position = rteProjection * rteView * vec4 (rteVertexPosition, 1.0 );
13
13
textureUV = rteVertexTexUV;
14
14
}
You can’t perform that action at this time.
0 commit comments