diff options
author | pommicket <pommicket@gmail.com> | 2021-09-25 22:15:59 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2021-09-25 22:15:59 -0400 |
commit | 4502fee2542cf3a2523d6bb615faa5009cfd00aa (patch) | |
tree | dcf7abc69c6b3bc82219f473b5aaf8e0172133bb /mainv.glsl | |
parent | 8ea1d64652f3b287139bd775a75cc13f0678e5d6 (diff) |
an object
Diffstat (limited to 'mainv.glsl')
-rw-r--r-- | mainv.glsl | 12 |
1 files changed, 12 insertions, 0 deletions
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; +} |