Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion com.unity.probuilder/Content/Shader/VertexShader.shader
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Properties
{
_Scale("Scale", Range(1,7)) = 3.3
_Color ("Color", Color) = (1,1,1,1)
}

SubShader
Expand Down Expand Up @@ -31,6 +32,7 @@
#include "UnityCG.cginc"

float _Scale;
float4 _Color;

struct appdata
{
Expand Down Expand Up @@ -80,7 +82,7 @@

half4 frag (v2f i) : COLOR
{
return i.color;
return _Color * i.color;
}

ENDCG
Expand Down