From 30cf48cd70f1c52f89362245891be355af110afe Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Wed, 18 Jan 2023 22:43:02 -0500 Subject: cube --- public/shader/simple.vert | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'public/shader') diff --git a/public/shader/simple.vert b/public/shader/simple.vert index 801b91d..09db32e 100644 --- a/public/shader/simple.vert +++ b/public/shader/simple.vert @@ -1,11 +1,15 @@ precision mediump float; -attribute vec2 position; +attribute vec3 position; attribute vec3 color; +uniform mat4 proj; +uniform mat4 view; +uniform mat4 tran; + varying vec3 color_pass; void main() { color_pass = color; - gl_Position = vec4(position, 0.0, 1.0); + gl_Position = proj * view * tran * vec4(position, 1.0); } \ No newline at end of file -- cgit v1.2.3-freya