Reworked round 1 podium design to be closer to the original design.
This commit is contained in:
@@ -3,6 +3,7 @@ Shader "Custom/FrontfaceCulling"
|
||||
Properties
|
||||
{
|
||||
_Color ("Color", Color) = (1,1,1,1)
|
||||
_Expand ("Expand", Float) = 1.0
|
||||
}
|
||||
SubShader
|
||||
{
|
||||
@@ -18,10 +19,12 @@ Shader "Custom/FrontfaceCulling"
|
||||
#pragma fragment frag
|
||||
|
||||
fixed4 _Color;
|
||||
float _Expand;
|
||||
|
||||
struct Data
|
||||
{
|
||||
float4 vertex : POSITION;
|
||||
float4 normal : NORMAL;
|
||||
float2 uv : TEXCOORD0;
|
||||
};
|
||||
|
||||
@@ -34,7 +37,7 @@ Shader "Custom/FrontfaceCulling"
|
||||
V2F vert(Data v)
|
||||
{
|
||||
V2F o;
|
||||
o.position = UnityObjectToClipPos(v.vertex);
|
||||
o.position = UnityObjectToClipPos(v.vertex + (v.normal * _Expand));
|
||||
o.screenPosition = ComputeScreenPos(o.position);
|
||||
return o;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user