blob: 5d79195a40bbdc4b0d6e9aa149c1e3d49709812e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
uniform float maskOpacity;
uniform float faceSetsOpacity;
in vec3 pos;
in vec3 fset;
in float msk;
out vec4 finalColor;
void main()
{
vec3 world_pos = point_object_to_world(pos);
gl_Position = point_world_to_ndc(world_pos);
finalColor = vec4(mix(vec3(1.0), fset, faceSetsOpacity), 1.0);
finalColor.rgb *= (1.0 - (msk * maskOpacity));
#ifdef USE_WORLD_CLIP_PLANES
world_clip_planes_calc_clip_distance(world_pos);
#endif
}
|