Files
filament/samples/materials/transparentColor.mat
2020-07-14 15:57:56 -07:00

21 lines
394 B
Plaintext

material {
name : TransparentColor,
parameters : [
{
type : float4,
name : color
}
],
blending : transparent,
culling : none,
depthCulling : false,
shadingModel : unlit
}
fragment {
void material(inout MaterialInputs material) {
prepareMaterial(material);
material.baseColor = materialParams.color;
}
}