diff options
| author | yum <yum.food.vr@gmail.com> | 2026-01-11 22:30:03 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-01-11 22:30:03 -0800 |
| commit | cbc299f489d6bdc38cce30d74040c54197efe125 (patch) | |
| tree | c5968e39e99ab521e6922316729a5120ff230734 /3ner.shader | |
| parent | d2d4b8897ded5f399378ca447474f51eaefbf1a5 (diff) | |
Implement distance-based culling for instances
Diffstat (limited to '3ner.shader')
| -rw-r--r-- | 3ner.shader | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/3ner.shader b/3ner.shader index e7865e2..70a5174 100644 --- a/3ner.shader +++ b/3ner.shader @@ -399,6 +399,18 @@ Shader "yum_food/3ner" [ThryToggle(_UNLIT)] _Unlit("Unlit", Float) = 0 //endex + [DoNotAnimate][HideInInspector] Instancing ("Instancing", Float) = 0 + //ifex Instancing==0 + [HideInInspector] m_start_Instancing("Instancing", Float) = 0 + //ifex _Instance_Distance_Culling_Enabled + [HideInInspector] m_start_Instance_Distance_Culling("Distance Culling", Float) = 0 + [ThryToggle(_INSTANCE_DISTANCE_CULLING)] _Instance_Distance_Culling_Enabled("Enable", Float) = 0 + _Instance_Distance_Culling_Distance("Distance (m)", Float) = 10 + [HideInInspector] m_end_Instance_Distance_Culling("Instance Distance Culling", Float) = 0 + //endex + [HideInInspector] m_end_Instancing("Instancing", Float) = 0 + //endex + //ifex _Parallax_Heightmap_Enabled==0 [HideInInspector] m_start_Parallax_Heightmap("Parallax Heightmap", Float) = 0 [ThryToggle(_PARALLAX_HEIGHTMAP)] _Parallax_Heightmap_Enabled("Enable", Float) = 0 @@ -476,7 +488,6 @@ Shader "yum_food/3ner" [Enum(UnityEngine.Rendering.BlendMode)] _SrcBlend("Source Blend", Float) = 1 [Enum(UnityEngine.Rendering.BlendMode)] _DstBlend("Destination Blend", Float) = 0 [Enum(Off, 0, On, 1)] _ZWrite("ZWrite", Int) = 1 - [DoNotAnimate][HideInInspector] Instancing ("Instancing", Float) = 0 [HideInInspector] m_end_Rendering_Options("Rendering Options", Float) = 0 } |
