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

lightprobe_cube_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: b943a59feebd8ede211266632fc05858a5eb9502 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

in vec3 pos;
in vec3 nor;

/* Instance attrib */
in int probe_id;
in vec3 probe_location;
in float sphere_size;

uniform mat4 ViewProjectionMatrix;

flat out int pid;
out vec3 worldNormal;
out vec3 worldPosition;

void main()
{
	pid = probe_id;
	worldPosition = pos * 0.1 * sphere_size + probe_location;
	gl_Position = ViewProjectionMatrix * vec4(worldPosition, 1.0);
	worldNormal = normalize(nor);
}