summaryrefslogtreecommitdiffstats
path: root/3ner.shader
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2026-02-16 16:32:00 -0800
committeryum <yum.food.vr@gmail.com>2026-02-16 16:36:24 -0800
commit864c2ba12dc864d9cb55cb797ba8919bee5b5913 (patch)
treeaa6cd98a71e4ef05d23f762127d3759a4a3e3e21 /3ner.shader
parent6504b2c4631bab477838548167b88c1052eac263 (diff)
Add instancing distance culling, scale deformation
* GPU instance distance culling now takes a min/max range * Fold recovers ops from material, allowing state to persist across editor restarts * Add scale node to vertex deformation framework * Remove fold presets - dumb LLM idea, unused * Drop more "undeform" code; unused, was for ray marching, which does not work well * Fix reflection energy compensation; was using cloth math, which makes things too bright
Diffstat (limited to '3ner.shader')
-rwxr-xr-x3ner.shader4
1 files changed, 3 insertions, 1 deletions
diff --git a/3ner.shader b/3ner.shader
index e411ada..926f408 100755
--- a/3ner.shader
+++ b/3ner.shader
@@ -429,12 +429,14 @@ Shader "yum_food/3ner"
//ifex _Instance_Distance_Culling_Enabled==0
[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
+ _Instance_Distance_Culling_Min_Distance("Min distance (m)", Float) = 0
+ _Instance_Distance_Culling_Max_Distance("Max distance (m)", Float) = 10
[HideInInspector] m_end_Instance_Distance_Culling("Instance Distance Culling", Float) = 0
//endex
//ifex _Instance_Texture_Offset_Enabled==0
[HideInInspector] m_start_Instance_Texture_Offset("Texture Offset", Float) = 0
[ThryToggle(_INSTANCE_TEXTURE_OFFSET)] _Instance_Texture_Offset_Enabled("Enable", Float) = 0
+ [DoNotLock] [HideInInspector] _Instance_ID("Instance ID", Float) = 0
_Instance_Texture_Offset_Data_Tex("Instance Data Texture", 2D) = "black" {}
_Instance_Texture_Offset_Cell_Dimensions("Cell Dimensions", Vector) = (1, 1, 1, 0)
_Instance_Texture_Offset_Angle_Randomization("Angle Randomization", Vector) = (0, 0, 0, 0)