Commit: cd324654b0795128eee2889a2de2f6921d544fa8 Author: Sergey Sharybin Date: Tue Jul 28 11:15:29 2015 +0200 Branches: master https://developer.blender.org/rBcd324654b0795128eee2889a2de2f6921d544fa8
Fix T45581: GPU failed to find function node_bsdf_refraction This commit fixes shader tree compilation, but the shading result wouldn't be doing actual refraction because it's a bit involved change which isn't really considered a bug for now. There are more closures which are falling back to diffuse BSDF currently. =================================================================== 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 12f55a9..ea7ab05 100644 --- a/source/blender/gpu/shaders/gpu_shader_material.glsl +++ b/source/blender/gpu/shaders/gpu_shader_material.glsl @@ -2262,6 +2262,11 @@ void node_bsdf_hair(vec4 color, float offset, float roughnessu, float roughnessv result = color; } +void node_bsdf_refraction(vec4 color, float roughness, float ior, vec3 N, out vec4 result) +{ + node_bsdf_diffuse(color, 0.0, N, result); +} + /* emission */ void node_emission(vec4 color, float strength, vec3 N, out vec4 result) _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs