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.
This commit is contained in:
parent
ad7e3c302e
commit
cd324654b0
Notes:
blender-bot
2023-02-14 09:48:25 +01:00
Referenced by issue #45590, More GPU Errors Referenced by issue #45581, GPU failed to find function node_bsdf_refraction
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue