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

Add support for lightmap textures to the WebGPU renderer #350

Merged
merged 9 commits into from
Jan 30, 2024

Conversation

rdw-software
Copy link
Member

Very basic and using some placeholders for the lightmap texture and UVs. Needs adjustments to the sampling method, as well.


Resolves #131.

This doesn't do much on its own, but allows uploading the UVs.
Again this is useless on its own, but allows materials to implement the actual support for lightmaps if they need it.
These should be replaced with the actual lightmap texture later, and of course they aren't yet used by the shaders (or even supported by the material bindings).
Required to bind the placeholder texture in the render loop.
It's a bit sketchy and not-at-all general to use the transform slot, but I don't think it matters since lightmaps are a terrain-only feature.
Obviously not the right method for actual lightmaps (placeholder).
@rdw-software rdw-software merged commit a079412 into main Jan 30, 2024
5 checks passed
@rdw-software rdw-software deleted the 131-lightmap-texture-binding branch January 30, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for lightmap textures to the terrain rendering pipeline
1 participant