mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-27 10:51:22 +00:00
Interactive shadows (#14702)
Co-authored-by: Ian Bassi <12130714+ianalexis@users.noreply.github.com> Co-authored-by: Ian Bassi <ian.bassi@outlook.com>
This commit is contained in:
co-authored by
Ian Bassi
Ian Bassi
parent
b1e64dc69c
commit
78692aa08f
@@ -0,0 +1,16 @@
|
||||
#version 140
|
||||
|
||||
uniform mat4 view_model_matrix;
|
||||
uniform mat4 projection_matrix;
|
||||
|
||||
in vec3 v_position;
|
||||
|
||||
// The plate mask quad is authored directly in world coordinates (z = 0 plane),
|
||||
// so v_position is already the world position of the fragment.
|
||||
out vec4 world_pos;
|
||||
|
||||
void main()
|
||||
{
|
||||
world_pos = vec4(v_position, 1.0);
|
||||
gl_Position = projection_matrix * view_model_matrix * vec4(v_position, 1.0);
|
||||
}
|
||||
Reference in New Issue
Block a user