From 4502fee2542cf3a2523d6bb615faa5009cfd00aa Mon Sep 17 00:00:00 2001 From: pommicket Date: Sat, 25 Sep 2021 22:15:59 -0400 Subject: an object --- mainv.glsl | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 mainv.glsl (limited to 'mainv.glsl') diff --git a/mainv.glsl b/mainv.glsl new file mode 100644 index 0000000..d78f63d --- /dev/null +++ b/mainv.glsl @@ -0,0 +1,12 @@ +attribute vec3 v_pos; +attribute vec3 v_normal; +uniform mat4 u_transform; +uniform vec3 u_offset; +uniform vec3 u_scale; + +varying vec3 normal; + +void main() { + gl_Position = u_transform * vec4(v_pos * u_scale + u_offset, 1.0); + normal = v_normal; +} -- cgit v1.2.3