summaryrefslogtreecommitdiffstats
path: root/tooner.shader
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-10-25 15:05:56 -0700
committeryum <yum.food.vr@gmail.com>2024-10-25 15:05:56 -0700
commit94f37fa8dd94137a910df4ebc80f98db2d685f08 (patch)
tree4a4b77203f1f4fa911ea4fa9a351a1d6ed911f2d /tooner.shader
parent1705cd25f5bcd796a560bcce22ef91d190a94900 (diff)
Add features for constant rim lighting view direction
Add vector to control rim lighting view dir (y does nothing) and toggle to enable doing reflection calculation in world space.
Diffstat (limited to 'tooner.shader')
-rw-r--r--tooner.shader12
1 files changed, 12 insertions, 0 deletions
diff --git a/tooner.shader b/tooner.shader
index 55ec40c..db54d6e 100644
--- a/tooner.shader
+++ b/tooner.shader
@@ -344,7 +344,10 @@ Shader "yum_food/tooner"
_Rim_Lighting0_PolarMask_Enabled("Rim lighting polar mask enabled", Float) = 0
_Rim_Lighting0_PolarMask_Theta("Rim lighting polar mask - theta", Float) = 0
_Rim_Lighting0_PolarMask_Power("Rim lighting polar mask - power", Float) = 3
+ _Rim_Lighting0_Custom_View_Vector_Enabled("custom view vector", Float) = 0
+ _Rim_Lighting0_Custom_View_Vector("custom view vector", Vector) = (1, 0, 0, 0)
_Rim_Lighting0_Center_Eye_Fix("Enable center eye fix", Float) = 0
+ _Rim_Lighting0_Reflect_In_World_Space("Reflect in world space", Float) = 0
_Rim_Lighting1_Enabled("Enable rim lighting", Float) = 0
_Rim_Lighting1_Mode("Rim lighting mode", Float) = 0
@@ -367,7 +370,10 @@ Shader "yum_food/tooner"
_Rim_Lighting1_PolarMask_Enabled("Rim lighting polar mask enabled", Float) = 0
_Rim_Lighting1_PolarMask_Theta("Rim lighting polar mask - theta", Float) = 0
_Rim_Lighting1_PolarMask_Power("Rim lighting polar mask - power", Float) = 3
+ _Rim_Lighting1_Custom_View_Vector_Enabled("custom view vector", Float) = 0
+ _Rim_Lighting1_Custom_View_Vector("custom view vector", Vector) = (1, 0, 0, 0)
_Rim_Lighting1_Center_Eye_Fix("Enable center eye fix", Float) = 0
+ _Rim_Lighting1_Reflect_In_World_Space("Reflect in world space", Float) = 0
_Rim_Lighting2_Enabled("Enable rim lighting", Float) = 0
_Rim_Lighting2_Mode("Rim lighting mode", Float) = 0
@@ -390,7 +396,10 @@ Shader "yum_food/tooner"
_Rim_Lighting2_PolarMask_Enabled("Rim lighting polar mask enabled", Float) = 0
_Rim_Lighting2_PolarMask_Theta("Rim lighting polar mask - theta", Float) = 0
_Rim_Lighting2_PolarMask_Power("Rim lighting polar mask - power", Float) = 3
+ _Rim_Lighting2_Custom_View_Vector_Enabled("custom view vector", Float) = 0
+ _Rim_Lighting2_Custom_View_Vector("custom view vector", Vector) = (1, 0, 0, 0)
_Rim_Lighting2_Center_Eye_Fix("Enable center eye fix", Float) = 0
+ _Rim_Lighting2_Reflect_In_World_Space("Reflect in world space", Float) = 0
_Rim_Lighting3_Enabled("Enable rim lighting", Float) = 0
_Rim_Lighting3_Mode("Rim lighting mode", Float) = 0
@@ -413,7 +422,10 @@ Shader "yum_food/tooner"
_Rim_Lighting3_PolarMask_Enabled("Rim lighting polar mask enabled", Float) = 0
_Rim_Lighting3_PolarMask_Theta("Rim lighting polar mask - theta", Float) = 0
_Rim_Lighting3_PolarMask_Power("Rim lighting polar mask - power", Float) = 3
+ _Rim_Lighting3_Custom_View_Vector_Enabled("custom view vector", Float) = 0
+ _Rim_Lighting3_Custom_View_Vector("custom view vector", Vector) = (1, 0, 0, 0)
_Rim_Lighting3_Center_Eye_Fix("Enable center eye fix", Float) = 0
+ _Rim_Lighting3_Reflect_In_World_Space("Reflect in world space", Float) = 0
_OKLAB_Enabled("Enable OKLAB", Float) = 0.0
_OKLAB_Mask("Mask", 2D) = "white" {}