unused unlit material

This commit is contained in:
Nick Fisher
2025-04-16 17:17:06 +08:00
parent a4227df098
commit b128f385e5

View File

@@ -1,10 +1,11 @@
material { material {
name : unlit, name : Unlit,
requires : [ uv0 ], requires : [ position, uv0 ],
parameters : [ parameters : [
{ {
type : sampler2d, type : sampler2d,
name : baseColorMap name : baseColorMap,
precision: medium
}, },
{ {
type : float4, type : float4,
@@ -36,17 +37,9 @@ fragment {
if (materialParams.baseColorIndex > -1) { if (materialParams.baseColorIndex > -1) {
highp float2 uv = getUV0(); highp float2 uv = getUV0();
uv.y = 1.0 - uv.y;
uv *= materialParams.uvScale; uv *= materialParams.uvScale;
material.baseColor *= texture(materialParams_baseColorMap, uv); material.baseColor *= texture(materialParams_baseColorMap, uv);
} }
} }
} }
vertex {
void materialVertex(inout MaterialVertexInputs material) {
float4 position = getPosition();
material.worldPosition = getWorldFromModelMatrix() * position;
}
}