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: a9716332eb5e77c5e60abd213e9396171d5d7619 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

in vec3 pos;

in int probe_id;
in mat4 probe_mat;

uniform mat4 ViewProjectionMatrix;

out vec3 worldPosition;
flat out int probeIdx;

void main()
{
	gl_Position = ViewProjectionMatrix * probe_mat * vec4(pos, 1.0);
	worldPosition = (probe_mat * vec4(pos, 1.0)).xyz;
	probeIdx = probe_id;
}