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:
Miguel Pozo
2024-01-29 17:03:39 +01:00
parent 56439d88f5
commit f185a284f0
2 changed files with 4 additions and 0 deletions

View File

@@ -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);
}

View File

@@ -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);
}