7 Months Ago
Only do SceneCubemap.RenderDirty() when it actually updates rather than every frame Only clear up light count instead of also envmap count on AllocateLights()