diff options
| author | yum <yum.food.vr@gmail.com> | 2024-07-01 01:32:06 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-07-01 01:32:06 -0700 |
| commit | a445f2bce613757ae04927c19d36bd473ff22522 (patch) | |
| tree | 8964ca54726b5ceddde3ed9f3ab1db16b646ac2e /tooner.shader | |
| parent | a57eca5f6f8756209018d034a12e0d75f9ee1ef5 (diff) | |
Add angle control to decals
Also:
* Fix decal mipmap calculation
* Decals are now sampled with a clamping sampler, not repeat
* Decal scaling now occurs at center, not bottom left
Diffstat (limited to 'tooner.shader')
| -rw-r--r-- | tooner.shader | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tooner.shader b/tooner.shader index 22cbac2..5a0fea4 100644 --- a/tooner.shader +++ b/tooner.shader @@ -74,18 +74,22 @@ Shader "yum_food/tooner" _Decal0_Enable("Enable decal", Float) = 0.0 _Decal0_BaseColor("Base color", 2D) = "white" {} _Decal0_Emission_Strength("Emission strength", Float) = 0 + _Decal0_Angle("Emission strength", Range(0,1)) = 0 _Decal1_Enable("Enable decal", Float) = 0.0 _Decal1_BaseColor("Base color", 2D) = "white" {} _Decal1_Emission_Strength("Emission strength", Float) = 0 + _Decal1_Angle("Emission strength", Range(0,1)) = 0 _Decal2_Enable("Enable decal", Float) = 0.0 _Decal2_BaseColor("Base color", 2D) = "white" {} _Decal2_Emission_Strength("Emission strength", Float) = 0 + _Decal2_Angle("Emission strength", Range(0,1)) = 0 _Decal3_Enable("Enable decal", Float) = 0.0 _Decal3_BaseColor("Base color", 2D) = "white" {} _Decal3_Emission_Strength("Emission strength", Float) = 0 + _Decal3_Angle("Emission strength", Range(0,1)) = 0 [NoScaleOffset] _EmissionTex("Emission map", 2D) = "black" {} _EmissionStrength("Emission strength", Range(0, 2)) = 0 |
