diff options
| author | Ray <[email protected]> | 2021-06-28 12:15:08 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-06-28 12:15:08 +0200 |
| commit | 790cbb4d0fbaffc71bf5439de40bb3e44b6658db (patch) | |
| tree | 28da8cc6db8a0b95a26923a77aaad274f19ef2ca /examples/web/models/resources/shaders/glsl100/skybox.vs | |
| parent | bbdb33e603760bde9e4f936df876cc4130cabefc (diff) | |
| download | raylib.com-790cbb4d0fbaffc71bf5439de40bb3e44b6658db.tar.gz raylib.com-790cbb4d0fbaffc71bf5439de40bb3e44b6658db.zip | |
Reviewed uniform names
Diffstat (limited to 'examples/web/models/resources/shaders/glsl100/skybox.vs')
| -rw-r--r-- | examples/web/models/resources/shaders/glsl100/skybox.vs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/web/models/resources/shaders/glsl100/skybox.vs b/examples/web/models/resources/shaders/glsl100/skybox.vs index 0d00d54..e440ace 100644 --- a/examples/web/models/resources/shaders/glsl100/skybox.vs +++ b/examples/web/models/resources/shaders/glsl100/skybox.vs @@ -4,8 +4,8 @@ attribute vec3 vertexPosition; // Input uniform values -uniform mat4 projection; -uniform mat4 view; +uniform mat4 matProjection; +uniform mat4 matView; // Output vertex attributes (to fragment shader) varying vec3 fragPosition; @@ -16,9 +16,9 @@ void main() fragPosition = vertexPosition; // Remove translation from the view matrix - mat4 rotView = mat4(mat3(view)); - vec4 clipPos = projection*rotView*vec4(vertexPosition, 1.0); + mat4 rotView = mat4(mat3(matView)); + vec4 clipPos = matProjection*rotView*vec4(vertexPosition, 1.0); // Calculate final vertex position - gl_Position = clipPos.xyzw; + gl_Position = clipPos; } |
