19 float &metallic)
const
22 color = (data.r == -1) ? vertex_color : data.rgb;
25 alpha =
float((encoded_data >> 16u) & 0xFFu) * (1.0f / 255.0f);
26 roughness =
float((encoded_data >> 8u) & 0xFFu) * (1.0f / 255.0f);
27 metallic =
float(encoded_data & 0xFFu) * (1.0f / 255.0f);
#define storage(slot, qualifiers)
VecBase< uint, D > floatBitsToUint(VecOp< float, D >) RET
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
void material_data_get(int handle, float3 vertex_color, float3 &color, float &alpha, float &roughness, float &metallic) const
const float4(& materials_data)[]