summaryrefslogtreecommitdiffstats
path: root/3ner.shader
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-11-11 16:20:14 -0800
committeryum <yum.food.vr@gmail.com>2025-11-11 16:20:14 -0800
commitfb48528cbb1881ff8ac96a1cd05c2c7aa326b203 (patch)
tree8f48bd00c00c0b26e49bbfa84de74509a6032ace /3ner.shader
parent5cbad6aa884ee4c77f6af65cdfceac987f54a227 (diff)
add detail map feature
Diffstat (limited to '3ner.shader')
-rw-r--r--3ner.shader60
1 files changed, 34 insertions, 26 deletions
diff --git a/3ner.shader b/3ner.shader
index 11f7d87..0fcf7a0 100644
--- a/3ner.shader
+++ b/3ner.shader
@@ -28,15 +28,27 @@ Shader "yum_food/3ner"
}]}]}", Int) = 0
[HideInInspector] m_start_Main("Main", Float) = 0
- _MainTex("Base color", 2D) = "white" {}
- _Color("Tint", Color) = (1, 1, 1, 1)
-
- _BumpMap("Normal", 2D) = "bump" {}
- _BumpScale("Normal Scale", Float) = 1
-
- _MetallicGlossMap("Metallic (r) smoothness (a)", 2D) = "white" {}
- _Metallic("Metallic", Range(0, 1)) = 0
- _Glossiness("Smoothness", Range(0, 1)) = 0.5
+ _MainTex("Base color", 2D) = "white" {}
+ _Color("Tint", Color) = (1, 1, 1, 1)
+
+ _BumpMap("Normal", 2D) = "bump" {}
+ _BumpScale("Normal Scale", Float) = 1
+
+ _MetallicGlossMap("Metallic (r) smoothness (a)", 2D) = "white" {}
+ _Metallic("Metallic", Range(0, 1)) = 0
+ _Glossiness("Smoothness", Range(0, 1)) = 0.5
+
+ //ifex _Details_Enabled==0
+ [HideInInspector] m_start_Details("Details", Float) = 0
+ [HideInInspector] m_start_Details_Enabled("Details Enabled", Float) = 0
+ [ThryToggle(_DETAILS)] _Details_Enabled("Enable", Float) = 0
+ _DetailNormalMap("Normal", 2D) = "bump" {}
+ _DetailNormalMapScale("Normal Scale", Float) = 1
+ _DetailMask("Mask", 2D) = "white" {}
+ [IntRange] _Details_UV_Channel("UV Channel", Range(0, 3)) = 0
+ [HideInInspector] m_end_Details_Enabled("Details Enabled", Float) = 0
+ [HideInInspector] m_end_Details("Details", Float) = 0
+ //endex
[HideInInspector] m_end_Main("Main", Float) = 0
[HideInInspector] m_start_Gimmicks("Gimmicks", Float) = 0
@@ -82,7 +94,6 @@ Shader "yum_food/3ner"
//endex
[HideInInspector] m_start_Ray_Marching_Instancing("Instancing and domain repetition", Float) = 0
-
//ifex _Ray_Marching_Cart_Instancing_Enabled==0
[HideInInspector] m_start_Ray_Marching_Cart_Instancing("Cartesian Instancing", Float) = 0
[ThryToggle(_RAY_MARCHING_CART_INSTANCING)] _Ray_Marching_Cart_Instancing_Enabled("Enable", Float) = 0
@@ -153,8 +164,6 @@ Shader "yum_food/3ner"
//endex
[HideInInspector] m_end_Ray_Marching_Primitives("Primitives", Float) = 0
- [HideInInspector] m_end_Ray_Marching_Primitives("Primitives", Float) = 0
-
[HideInInspector] m_end_Ray_Marching("Ray Marching", Float) = 0
//endex
@@ -260,22 +269,21 @@ Shader "yum_food/3ner"
[HideInInspector] m_end_Marble("Marble", Float) = 0
//endex
- //endex
[HideInInspector] m_end_Gimmicks("Gimmicks", Float) = 0
- //ifex _Tessellation_Enabled==0
- [HideInInspector] m_start_Tessellation("Tessellation", Float) = 0
- [ThryToggle(_TESSELLATION)] _Tessellation_Enabled("Enable", Float) = 0
- _Tessellation_Factor("Factor", Range(1, 64)) = 1
- _Tessellation_Frustum_Culling_Bias("Frustum culling bias", Float) = 35
- _Tessellation_Falloff_Factor("Falloff factor", Float) = 0.05
- // Shit for thry
- [HideInInspector] Tessellation_Enabled("Enabled", Float) = 1
- [HideInInspector] Tessellation_EnabledForwardBase("Enabled (ForwardBase)", Float) = 1
- [HideInInspector] Tessellation_EnabledForwardAdd("Enabled (ForwardAdd)", Float) = 1
- [HideInInspector] Tessellation_EnabledShadowCaster("Enabled (ShadowCaster)", Float) = 1
- [HideInInspector] m_end_Tessellation("Tessellation", Float) = 0
- //endex
+ //ifex _Tessellation_Enabled==0
+ [HideInInspector] m_start_Tessellation("Tessellation", Float) = 0
+ [ThryToggle(_TESSELLATION)] _Tessellation_Enabled("Enable", Float) = 0
+ _Tessellation_Factor("Factor", Range(1, 64)) = 1
+ _Tessellation_Frustum_Culling_Bias("Frustum culling bias", Float) = 35
+ _Tessellation_Falloff_Factor("Falloff factor", Float) = 0.05
+ // Shit for thry
+ [HideInInspector] Tessellation_Enabled("Enabled", Float) = 1
+ [HideInInspector] Tessellation_EnabledForwardBase("Enabled (ForwardBase)", Float) = 1
+ [HideInInspector] Tessellation_EnabledForwardAdd("Enabled (ForwardAdd)", Float) = 1
+ [HideInInspector] Tessellation_EnabledShadowCaster("Enabled (ShadowCaster)", Float) = 1
+ [HideInInspector] m_end_Tessellation("Tessellation", Float) = 0
+ //endex
[HideInInspector] m_start_Rendering_Options("Rendering Options", Float) = 0