diff options
| author | yum <yum.food.vr@gmail.com> | 2026-01-18 14:59:59 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-01-18 14:59:59 -0800 |
| commit | 6504b2c4631bab477838548167b88c1052eac263 (patch) | |
| tree | e7d3aa4d19a21e624927a6771e2aeb4815af9393 /3ner.shader | |
| parent | fbe7ed126883b0c4a1d5115e5c953bc244bc0214 (diff) | |
Grass: add crude instancing code
Diffstat (limited to '3ner.shader')
| -rwxr-xr-x | 3ner.shader | 13 |
1 files changed, 12 insertions, 1 deletions
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 |
