# 着色器: rendinst_tree_colored ## 概述 用于渲染植被的基本着色器。 ## 纹理 - **tex0:** 具有 Alpha 通道的漫反射纹理。 ## 参数 默认值用引号表示。 - `script:t="atest=0"` – 启用 Alpha 测试。 - `script:t="interactions=0"` – 配置角色和植被之间的交互。 - `0`: Disabled - `1`: Tall plants - `2`: Bushes - `script:t="interaction_strength=0.8"` – 控制交互的强度,范围从 '0' 到 '1' (大于 '1' 的值也可能有效)。这是一个乘数,仅在 'interactions' 设置为 '1' 或 '2' 时有效。 这现在仅用于 'is_pivoted' 为 'no' 的植被。 对于其他所有内容,应使用 'interaction_force_max' 。 - `script:t="interaction_force_max=3.0` - 设置使用枢轴绘制器的植被的最大计算力('is_pivoted' 为 'yes' -> 具有蒙皮结构)。对于这些植被,相互作用力介于 0 和 'interaction_force_max' 之间,具体取决于障碍物与植被中心的距离。这也仅在 “interactions” 设置为 “1” 或 “2” 时有效。 - `script:t="angle_dissolve=1"` – 切换基于角度的溶解效果。 - `script:t="spherical_normals=1"` – 在分支法线上应用球形法线,以平滑锐边并减少低多边形外观。 ```{note} 此功能很少使用,并且可能会出现意外行为。 ``` ## 顶点颜色 与 *War Thunder* 不同,不使用第三个频道。 - 红色通道:控制精细的顶点抖动。偏移沿顶点法线发生,但仅在水平面上发生。 - **绿色通道:** 控制振荡相位。它将振幅振荡移动 90 度,使精细顶点抖动随机化。