add_point_light 添加点光灯

add_point_light(name string,r f32,g f32,b f32,intensity f32,range f32,radius f32);

其他方法与聚光灯一样 spot 改 point 如 spot_light_pos 改 point_light_pos

输入参数

  • name 定义名称
  • r,g,b 颜色通道(0-1.0)
  • intensity 强度
  • range 可见范围
  • radius 半径

输出参数

例子

/// 添加灯光
add_point_light("hk_xj01_d",0.9,0.9,0.9,0.0,20.0,0.9);
作者:力博特  创建时间:2026-02-27 14:34
最后编辑:力博特  更新时间:2026-02-27 14:54