unused unlit material
This commit is contained in:
@@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user