Fix T45590: Some more missing glsl functions
Also SSS node was using wrong Normal input index.
This commit is contained in:
parent
be047fe455
commit
971affb436
Notes:
blender-bot
2023-04-04 07:45:26 +02:00
Referenced by issue #45590, More GPU Errors
|
@ -2267,6 +2267,11 @@ void node_bsdf_refraction(vec4 color, float roughness, float ior, vec3 N, out ve
|
|||
node_bsdf_diffuse(color, 0.0, N, result);
|
||||
}
|
||||
|
||||
void node_ambient_occlusion(vec4 color, out vec4 result)
|
||||
{
|
||||
result = color;
|
||||
}
|
||||
|
||||
/* emission */
|
||||
|
||||
void node_emission(vec4 color, float strength, vec3 N, out vec4 result)
|
||||
|
|
|
@ -60,8 +60,8 @@ static void node_shader_init_subsurface_scattering(bNodeTree *UNUSED(ntree), bNo
|
|||
|
||||
static int node_shader_gpu_subsurface_scattering(GPUMaterial *mat, bNode *UNUSED(node), bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out)
|
||||
{
|
||||
if (!in[1].link)
|
||||
in[1].link = GPU_builtin(GPU_VIEW_NORMAL);
|
||||
if (!in[5].link)
|
||||
in[5].link = GPU_builtin(GPU_VIEW_NORMAL);
|
||||
|
||||
return GPU_stack_link(mat, "node_subsurface_scattering", in, out);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue