diff options
| author | yum <yum.food.vr@gmail.com> | 2025-03-25 19:12:49 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-03-25 19:12:49 -0700 |
| commit | 274f601c9c49f69e4acef24b56982190b5b0bf93 (patch) | |
| tree | 8c241e6cb0310485edb7db96d42d164189753c4b /2ner.shader | |
| parent | ccdda956f7de812bb9c318161c6852301a60d413 (diff) | |
Continue work on tessellation
Diffstat (limited to '2ner.shader')
| -rw-r--r-- | 2ner.shader | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/2ner.shader b/2ner.shader index 377f705..8af036e 100644 --- a/2ner.shader +++ b/2ner.shader @@ -523,8 +523,12 @@ Shader "yum_food/2ner" //ifex _Tessellation_Enabled==0 [HideInInspector] m_start_Tessellation("Tessellation", Float) = 0 [ThryToggle(_TESSELLATION)] _Tessellation_Enabled("Enable", Float) = 0 - _Tessellation_Edge_Factors("Edge factors", Vector) = (1, 1, 1, 1) - _Tessellation_Inside_Factor("Inside factor", Float) = 1 + _Tessellation_Factor("Factor", Range(1, 64)) = 1 + [HideInInspector] m_start_Tessellation_Heightmap("Heightmap", Float) = 0 + [ThryToggle(_TESSELLATION_HEIGHTMAP)] _Tessellation_Heightmap_Enabled("Enable", Float) = 0 + _Tessellation_Heightmap("Heightmap", 2D) = "black" {} + _Tessellation_Heightmap_Scale("Scale", Float) = 1 + [HideInInspector] m_end_Tessellation_Heightmap("Heightmap", Float) = 0 [HideInInspector] m_end_Tessellation("Tessellation", Float) = 0 //endex @@ -993,11 +997,6 @@ Shader "yum_food/2ner" #pragma vertex vert #pragma fragment frag - //ifex _Tessellation_Enabled==0 - #pragma hull hull - #pragma domain domain - //endex - #define MASKED_STENCIL1_PASS #include "2ner.cginc" @@ -1189,6 +1188,11 @@ Shader "yum_food/2ner" #pragma vertex vert #pragma fragment frag + //ifex _Tessellation_Enabled==0 + #pragma hull hull + #pragma domain domain + //endex + #define FORWARD_BASE_PASS #include "2ner.cginc" @@ -1239,6 +1243,11 @@ Shader "yum_food/2ner" #pragma vertex vert #pragma fragment frag + //ifex _Tessellation_Enabled==0 + #pragma hull hull + #pragma domain domain + //endex + #define FORWARD_ADD_PASS #include "2ner.cginc" @@ -1336,6 +1345,11 @@ Shader "yum_food/2ner" #pragma vertex vert #pragma fragment frag + //ifex _Tessellation_Enabled==0 + #pragma hull hull + #pragma domain domain + //endex + #define OUTLINE_PASS #include "2ner.cginc" |
