mirror of
https://github.com/photonstorm/phaser
synced 2024-12-24 12:03:36 +00:00
ab04cb6c05
* The Light Pipeline no longer creates up to `maxLights` copies of the Light shader on boot. Previously it would then pick which shader to use, based on the number of visible lights in the Scene. Now, the number of lights is passed to the shader and branches accordingly. This means rather than compiling _n_ shaders on boot, it now only ever needs to create one. * You can now have no lights in a Scene, but the Scene will still be impacted by the ambient light. Previously, you always needed at least 1 light to trigger ambient light (thanks jstnldrs) * The `Light.frag` shader now uses a new `uLightCount` uniform to know when to stop iterating through the max lights. * The `LightPipeline.LIGHT_COUNT` constant has been removed as it's not used internally. * The `LightPipeline` previous created a global level temporary vec2 for calculations. This is now part of the class as the new `tempVec2` property. |
||
---|---|---|
.. | ||
canvas | ||
events | ||
snapshot | ||
webgl | ||
BlendModes.js | ||
index.js | ||
ScaleModes.js |