MetaCore/Source/MetaCoreRender/Private/Materials/grid.mat
2026-06-24 16:32:25 +08:00

22 lines
537 B
Plaintext

material {
name : MetaCoreEditorGrid,
shadingModel : unlit,
blending : transparent,
transparency : default,
depthWrite : false,
depthCulling : true,
doubleSided : true,
requires : [ color ],
parameters : [
{ type : float4, name : baseColorFactor }
],
}
fragment {
void material(inout MaterialInputs material) {
prepareMaterial(material);
material.baseColor = materialParams.baseColorFactor * getColor();
material.baseColor.rgb *= material.baseColor.a;
}
}