Differential D16125 Diff 56366 source/blender/draw/engines/eevee/shaders/lightprobe_planar_display_vert.glsl
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/eevee/shaders/lightprobe_planar_display_vert.glsl
| #pragma BLENDER_REQUIRE(common_view_lib.glsl) | #pragma BLENDER_REQUIRE(common_view_lib.glsl) | ||||
| in vec3 pos; | in vec3 pos; | ||||
| in int probe_id; | in int probe_id; | ||||
| in mat4 probe_mat; | in mat4 probe_mat; | ||||
| out vec3 worldPosition; | out vec3 worldPosition; | ||||
| flat out int probeIdx; | flat out int probeIdx; | ||||
| void main() | void main() | ||||
| { | { | ||||
| worldPosition = (probe_mat * vec4(-pos.x, pos.y, 0.0, 1.0)).xyz; | worldPosition = (probe_mat * vec4(-pos.x, pos.y, 0.0, 1.0)).xyz; | ||||
| gl_Position = ViewProjectionMatrix * vec4(worldPosition, 1.0); | gl_Position = ProjectionMatrix * (ViewMatrix * vec4(worldPosition, 1.0)); | ||||
| probeIdx = probe_id; | probeIdx = probe_id; | ||||
| } | } | ||||