diff options
Diffstat (limited to 'source/blender/gpu/shaders/material')
-rw-r--r-- | source/blender/gpu/shaders/material/gpu_shader_material_anisotropic.glsl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/gpu/shaders/material/gpu_shader_material_anisotropic.glsl b/source/blender/gpu/shaders/material/gpu_shader_material_anisotropic.glsl index 8131958313b..ec49cc86761 100644 --- a/source/blender/gpu/shaders/material/gpu_shader_material_anisotropic.glsl +++ b/source/blender/gpu/shaders/material/gpu_shader_material_anisotropic.glsl @@ -5,12 +5,13 @@ void node_bsdf_anisotropic(vec4 color, float rotation, vec3 N, vec3 T, - float use_multiscatter, + const float use_multiscatter, + const float ssr_id, out Closure result) { - node_bsdf_glossy(color, roughness, N, -1, use_multiscatter, result); + node_bsdf_glossy(color, roughness, N, use_multiscatter, ssr_id, result); } #else /* Stub anisotropic because it is not compatible with volumetrics. */ -# define node_bsdf_anisotropic(a, b, c, d, e, f, g, result) (result = CLOSURE_DEFAULT) +# define node_bsdf_anisotropic(a, b, c, d, e, f, g, h, result) (result = CLOSURE_DEFAULT) #endif |