| 12345678910111213141516 |
- light_struct = new BulbLight(global.bulb_renderer, sLightCookie, 0, x, y);
- // 1. 颜色:使用高饱和度颜色进行染色
- light_struct.blend = c_white;
- // 2. 软阴影:这是消除“贴纸感”的核心
- // 这个值越大,阴影边缘越模糊,光照看起来越真实
- light_struct.soft = true;
- light_struct.penumbraSize = 64;
- // 3. 强度:开启 HDR 后,可以将 alpha 设得略高
- light_struct.alpha = 1.5;
- // 4. 自身光照 (Self Lighting)
- // 设置为 false,光照不会照亮“遮挡物”内部,这能增加深度感
- light_struct.selfLighting = false;
|