Fix T97895: Eevee support for Geometry Nodes Color Attributes.
Geometry nodes can generate color attributes that aren't on point or corner domain. When not found in these domains it will be processed as a common attribute.
This commit is contained in:
@@ -708,12 +708,18 @@ static DRW_MeshCDMask mesh_cd_calc_used_gpu_layers(const Object *object,
|
||||
case CD_MCOL:
|
||||
case CD_PROP_BYTE_COLOR:
|
||||
case CD_PROP_COLOR: {
|
||||
/* First check Color attributes, when not found check mesh attributes. Geometry nodes
|
||||
* can generate those layers. */
|
||||
int vcol_bit = mesh_cd_calc_gpu_layers_vcol_used(&me_query, cd_vdata, cd_ldata, name);
|
||||
|
||||
if (vcol_bit != -1) {
|
||||
cd_used.vcol |= 1UL << (uint)vcol_bit;
|
||||
break;
|
||||
}
|
||||
|
||||
if (layer != -1 && domain != ATTR_DOMAIN_NUM) {
|
||||
drw_mesh_attributes_add_request(attributes, type, layer, domain);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case CD_PROP_FLOAT3:
|
||||
|
Reference in New Issue
Block a user