From b128f385e5bdbc0342b6e6773f7beafd36067ff4 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Wed, 16 Apr 2025 17:17:06 +0800 Subject: [PATCH] unused unlit material --- materials/unlit.mat | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/materials/unlit.mat b/materials/unlit.mat index fc3f9949..0be05bb0 100644 --- a/materials/unlit.mat +++ b/materials/unlit.mat @@ -1,10 +1,11 @@ material { - name : unlit, - requires : [ uv0 ], + name : Unlit, + requires : [ position, uv0 ], parameters : [ { type : sampler2d, - name : baseColorMap + name : baseColorMap, + precision: medium }, { type : float4, @@ -36,17 +37,9 @@ fragment { if (materialParams.baseColorIndex > -1) { highp float2 uv = getUV0(); - uv.y = 1.0 - uv.y; uv *= materialParams.uvScale; material.baseColor *= texture(materialParams_baseColorMap, uv); } } } -vertex { - void materialVertex(inout MaterialVertexInputs material) { - float4 position = getPosition(); - material.worldPosition = getWorldFromModelMatrix() * position; - } -} -