Skip to content

Fixed uv scale problem in lightweight shader when using the control texture debug view#918

Draft
stan4dbunny wants to merge 1 commit intoTokisanGames:mainfrom
stan4dbunny:lightweight_shader_uv_fix
Draft

Fixed uv scale problem in lightweight shader when using the control texture debug view#918
stan4dbunny wants to merge 1 commit intoTokisanGames:mainfrom
stan4dbunny:lightweight_shader_uv_fix

Conversation

@stan4dbunny
Copy link
Contributor

When using the debug view to look at the control texture, I noticed that the control texture didn't match up to the actual terrain/color map after using the newest version of the lightweight shader.

I figured that it's because the uv variable was scaled with _vertex_spacing on line 377, and somehow used for the control texture in the debug_view shader.

I also noticed problems with other debug views, such as the PBR views because the shader expects the material struct (mat).

But maybe the shader is not finished yet, and everyone already knows this, but I thought I would say it here just in case!

@TokisanGames TokisanGames requested a review from Xtarsia January 20, 2026 21:35
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.

1 participant