From 6504b2c4631bab477838548167b88c1052eac263 Mon Sep 17 00:00:00 2001 From: yum Date: Sun, 18 Jan 2026 14:59:59 -0800 Subject: Grass: add crude instancing code --- 3ner.shader | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to '3ner.shader') diff --git a/3ner.shader b/3ner.shader index dce0e18..e411ada 100755 --- a/3ner.shader +++ b/3ner.shader @@ -426,12 +426,23 @@ Shader "yum_food/3ner" [DoNotAnimate][HideInInspector] Instancing ("Instancing", Float) = 0 //ifex Instancing==0 [HideInInspector] m_start_Instancing("Instancing", Float) = 0 - //ifex _Instance_Distance_Culling_Enabled + //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 [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 + _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) + _Instance_Texture_Offset_Scale_Randomization("Scale Randomization", Float) = 0 + _Instance_Texture_Offset_Base_Scale("Base Scale", Vector) = (1, 1, 1, 0) + _Instance_Texture_Offset_Base_Rotation("Base Rotation (Quaternion)", Vector) = (0, 0, 0, 1) + [HideInInspector] m_end_Instance_Texture_Offset("Instance Texture Offset", Float) = 0 + //endex [HideInInspector] m_end_Instancing("Instancing", Float) = 0 //endex -- cgit v1.2.3