From a445f2bce613757ae04927c19d36bd473ff22522 Mon Sep 17 00:00:00 2001 From: yum Date: Mon, 1 Jul 2024 01:32:06 -0700 Subject: 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 --- tooner.shader | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tooner.shader') 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 -- cgit v1.2.3