summaryrefslogtreecommitdiff
path: root/source/dw/app/shader
diff options
context:
space:
mode:
Diffstat (limited to 'source/dw/app/shader')
-rw-r--r--source/dw/app/shader/main.vert.glsl4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/dw/app/shader/main.vert.glsl b/source/dw/app/shader/main.vert.glsl
index 16df6f0..0ab36c8 100644
--- a/source/dw/app/shader/main.vert.glsl
+++ b/source/dw/app/shader/main.vert.glsl
@@ -2,6 +2,8 @@
in vec3 pos;
+uniform float scl;
+
void main(void) {
- gl_Position = vec4(pos.x, pos.y, pos.z, 1.0f);
+ gl_Position = vec4(pos.x*scl, pos.y*scl, pos.z*scl, 1.0f);
}