diff options
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/shadow_vert.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/shadow_vert.glsl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/shadow_vert.glsl b/source/blender/draw/engines/eevee/shaders/shadow_vert.glsl new file mode 100644 index 00000000000..288098ba771 --- /dev/null +++ b/source/blender/draw/engines/eevee/shaders/shadow_vert.glsl @@ -0,0 +1,13 @@ + +uniform mat4 ShadowModelMatrix; + +in vec3 pos; + +out vec4 vPos; + +flat out int face; + +void main() { + vPos = ShadowModelMatrix * vec4(pos, 1.0); + face = gl_InstanceID; +}
\ No newline at end of file |