Eevee: Support for light path node "is camera ray" output.

This commit is contained in:
Clément Foucault 2017-05-10 10:32:22 +02:00
parent da8b34e527
commit fdf2d8bb95
1 changed files with 11 additions and 3 deletions

View File

@ -3813,13 +3813,21 @@ void node_light_path(
out float transparent_depth,
out float transmission_depth)
{
#ifndef PROBE_CAPTURE
is_camera_ray = 1.0;
is_shadow_ray = 0.0;
is_diffuse_ray = 0.0;
is_glossy_ray = 0.0;
is_singular_ray = 0.0;
is_diffuse_ray = 0.0;
is_reflection_ray = 0.0;
is_transmission_ray = 0.0;
#else
is_camera_ray = 0.0;
is_glossy_ray = 1.0;
is_diffuse_ray = 1.0;
is_reflection_ray = 1.0;
is_transmission_ray = 1.0;
#endif
is_shadow_ray = 0.0;
is_singular_ray = 0.0;
ray_length = 1.0;
ray_depth = 1.0;
diffuse_depth = 1.0;