Fix: EEVEE-Next: Hair material flags
Add missing tags so the deferred pass can work correctly. Fixes principled hair render tests.
This commit is contained in:
@@ -40,6 +40,8 @@ static int node_shader_gpu_bsdf_hair(GPUMaterial *mat,
|
||||
GPUNodeStack *in,
|
||||
GPUNodeStack *out)
|
||||
{
|
||||
GPU_material_flag_set(mat, GPU_MATFLAG_DIFFUSE | GPU_MATFLAG_GLOSSY);
|
||||
|
||||
return GPU_stack_link(mat, node, "node_bsdf_hair", in, out);
|
||||
}
|
||||
|
||||
|
||||
@@ -198,6 +198,8 @@ static int node_shader_gpu_hair_principled(GPUMaterial *mat,
|
||||
GPUNodeStack *in,
|
||||
GPUNodeStack *out)
|
||||
{
|
||||
GPU_material_flag_set(mat, GPU_MATFLAG_DIFFUSE | GPU_MATFLAG_GLOSSY);
|
||||
|
||||
return GPU_stack_link(mat, node, "node_bsdf_hair_principled", in, out);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user