Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update materialProperties.environment even if program doesn't change
The environment map can be switched to a different image while still using the exact same shader. It's important to update materialProperties.environment in this case so that unnecessary calls to initMaterial can be avoided. Prior to this fix FPS could be halved after changing scene.environment.
- Loading branch information