From 425decdf7e9284d15aa726e3ae96b9942fb0e3ea Mon Sep 17 00:00:00 2001 From: IronClawTrem Date: Sun, 16 Feb 2020 03:40:06 +0000 Subject: create tremded branch --- src/renderergl2/glsl/pshadow_vp.glsl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/renderergl2/glsl/pshadow_vp.glsl (limited to 'src/renderergl2/glsl/pshadow_vp.glsl') diff --git a/src/renderergl2/glsl/pshadow_vp.glsl b/src/renderergl2/glsl/pshadow_vp.glsl new file mode 100644 index 0000000..07a4985 --- /dev/null +++ b/src/renderergl2/glsl/pshadow_vp.glsl @@ -0,0 +1,15 @@ +attribute vec3 attr_Position; +attribute vec3 attr_Normal; + +uniform mat4 u_ModelViewProjectionMatrix; +varying vec3 var_Position; +varying vec3 var_Normal; + + +void main() +{ + gl_Position = u_ModelViewProjectionMatrix * vec4(attr_Position, 1.0); + + var_Position = attr_Position; + var_Normal = attr_Normal; +} -- cgit