我如何添加一个Texture
由魔环API给出以下着色器衰减:添加纹理熄灭透明色着色
Shader "Oculus/Unlit Transparent Color" {
Properties {
_Color ("Main Color", Color) = (1,1,1,1)
_MainTex ("Texture", 2D) = "white" {} // I added this property to apply Texture. Where can I use it?
}
SubShader {
Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent"}
LOD 100
Fog {Mode Off}
Cull Off
ZWrite Off
Blend SrcAlpha OneMinusSrcAlpha
Color [_Color]
Pass {}
}
}
**关于所有downvoters **如果您确信_this问题不显示的研究工作;它不清楚,也没有用处。那么你应该通过添加适当的评论来证明这一点。如果您因为_meta效应而拒绝投票回答问题,并且您不能因为不想失去声誉而降低答案,那么这样的羊群行为是不可接受的。 –