[Bf-blender-cvs] [05dfb39] : Fix T38973: GLSL error, when using Cycles Light Path node.
Thomas Dinges
noreply at git.blender.org
Wed Mar 12 18:15:21 CET 2014
Commit: 05dfb3985e76c0041f7771c585afc83aec68fb8f
Author: Thomas Dinges
Date: Thu Mar 6 09:06:20 2014 +0100
https://developer.blender.org/rB05dfb3985e76c0041f7771c585afc83aec68fb8f
Fix T38973: GLSL error, when using Cycles Light Path node.
===================================================================
M source/blender/gpu/shaders/gpu_shader_material.glsl
===================================================================
diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl
index cdb3f57..19ef6d0 100644
--- a/source/blender/gpu/shaders/gpu_shader_material.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_material.glsl
@@ -2361,7 +2361,8 @@ void node_light_path(
out float is_singular_ray,
out float is_reflection_ray,
out float is_transmission_ray,
- out float ray_length)
+ out float ray_length,
+ out float ray_depth)
{
is_camera_ray = 1.0;
is_shadow_ray = 0.0;
@@ -2371,6 +2372,7 @@ void node_light_path(
is_reflection_ray = 0.0;
is_transmission_ray = 0.0;
ray_length = 1.0;
+ ray_depth = 1.0;
}
void node_light_falloff(float strength, float tsmooth, out float quadratic, out float linear, out float constant)
More information about the Bf-blender-cvs
mailing list