Create_0.gml 588 B

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