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

Refactored 2D shader and lighting system #43052

Merged
merged 1 commit into from
Oct 24, 2020

Conversation

reduz
Copy link
Member

@reduz reduz commented Oct 24, 2020

-Removed normal/specular properties from nodes
-Create CanvasTexture, which can contain normal/specular channels
-Refactored, optimized and simplified 2D shaders
-Use atlas for light textures.
-Use a shadow atlas for shadow textures.
-Use both items above to make light rendering stateless (faster).
-Reorganized uniform sets for more efficiency, 2D performance should be optimal now.

gg2

@reduz reduz force-pushed the refactor-2d-lighting branch 2 times, most recently from a3d1814 to 955a48a Compare October 24, 2020 18:25
-Removed normal/specular properties from nodes
-Create CanvasTexture, which can contain normal/specular channels
-Refactored, optimized and simplified 2D shaders
-Use atlas for light textures.
-Use a shadow atlas for shadow textures.
-Use both items aboves to make light rendering stateless (faster).
-Reorganized uniform sets for more efficiency.
@reduz reduz force-pushed the refactor-2d-lighting branch from 955a48a to 84d734d Compare October 24, 2020 18:57
@akien-mga akien-mga merged commit d5bda59 into godotengine:master Oct 24, 2020
@akien-mga
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

4 participants