Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error rendering a scene without Lights Plugin #7058

Closed
samme opened this issue Feb 24, 2025 · 1 comment
Closed

Error rendering a scene without Lights Plugin #7058

samme opened this issue Feb 24, 2025 · 1 comment

Comments

@samme
Copy link
Contributor

samme commented Feb 24, 2025

Version

  • Phaser Version: 4.0.0 Beta 6

Description

Create a scene without the Lights Plugin and start it. Add an Image or Shape, wait for render.

[Error] TypeError: undefined is not an object (evaluating 'lightManager.getLights')
updateLightingUniforms (phaser.js:94829)

etc.

Example Test Code

https://phaser.io/sandbox/khSm5kcF

@BenjaminDRichards
Copy link
Collaborator

Thanks for identifying that - I've updated the shader code to check whether lights are active or included before it proceeds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants