Welcome to mirror list, hosted at ThFree Co, Russian Federation.

lightprobe_planar_display_vert.glsl « shaders « eevee « engines « draw « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9c79fd4c9399c4e90b6c983d39b5c772827b5adc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

#pragma BLENDER_REQUIRE(common_view_lib.glsl)

in vec3 pos;

in int probe_id;
in mat4 probe_mat;

out vec3 worldPosition;
flat out int probeIdx;

void main()
{
  worldPosition = (probe_mat * vec4(-pos.x, pos.y, 0.0, 1.0)).xyz;
  gl_Position = ProjectionMatrix * (ViewMatrix * vec4(worldPosition, 1.0));
  probeIdx = probe_id;
}