Differential D10547 Diff 34580 source/blender/gpu/shaders/material/gpu_shader_material_anisotropic.glsl
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/shaders/material/gpu_shader_material_anisotropic.glsl
| #ifndef VOLUMETRICS | #ifndef VOLUMETRICS | ||||
| void node_bsdf_anisotropic(vec4 color, | void node_bsdf_anisotropic(vec4 color, | ||||
| float roughness, | float roughness, | ||||
| float anisotropy, | float anisotropy, | ||||
| float rotation, | float rotation, | ||||
| vec3 N, | vec3 N, | ||||
| vec3 T, | vec3 T, | ||||
| float use_multiscatter, | const float use_multiscatter, | ||||
| const float ssr_id, | |||||
fclem: Make that a `const` | |||||
Done Inline ActionsMake that a const fclem: Make that a `const` | |||||
| out Closure result) | 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 | #else | ||||
| /* Stub anisotropic because it is not compatible with volumetrics. */ | /* 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) | ||||
Done Inline Actionsthis stub needs to be updated too. fclem: this stub needs to be updated too. | |||||
| #endif | #endif | ||||
Make that a const