Skip to content

Commit d91675a

Browse files
committed
add view matrix to shaders
1 parent ce93907 commit d91675a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Data/Base.rte/Shaders/Blit8.vert

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ in vec4 rteVertexColor;
66

77
out vec2 textureUV;
88
out vec4 vertexColor;
9-
//uniform mat4 rteModelViewProjection;
9+
uniform mat4 rteView;
1010
uniform mat4 rteProjection;
1111

1212
void main() {
13-
gl_Position = rteProjection * vec4(rteVertexPosition, 1.0);
13+
gl_Position = rteProjection * rteView * vec4(rteVertexPosition, 1.0);
1414
textureUV = rteVertexTexUV;
1515
vertexColor = rteVertexColor;
1616
}

Data/Base.rte/Shaders/PostProcess.vert

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ in vec4 rteVertexColor;
77
out vec2 textureUV;
88
out vec4 vertexColor;
99

10-
uniform mat4 rteModel;
10+
uniform mat4 rteView;
1111
uniform mat4 rteProjection;
1212

1313
void main() {
14-
gl_Position = rteProjection * rteModel * vec4(rteVertexPosition, 1.0);
14+
gl_Position = rteProjection * rteView * vec4(rteVertexPosition, 1.0);
1515
vertexColor = rteVertexColor;
1616
textureUV = rteVertexTexUV;
1717
}

Data/Base.rte/Shaders/ScreenBlit.vert

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ in vec2 rteVertexTexUV;
55

66
out vec2 textureUV;
77

8-
uniform mat4 rteModel;
8+
uniform mat4 rteView;
99
uniform mat4 rteProjection;
1010

1111
void main() {
12-
gl_Position = rteProjection * rteModel * vec4(rteVertexPosition, 1.0);
12+
gl_Position = rteProjection * rteView * vec4(rteVertexPosition, 1.0);
1313
textureUV = rteVertexTexUV;
1414
}

0 commit comments

Comments
 (0)