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

Custom uniforms #229

Merged
merged 12 commits into from
Oct 16, 2023
Merged

Custom uniforms #229

merged 12 commits into from
Oct 16, 2023

Conversation

TokisanGames
Copy link
Owner

@TokisanGames TokisanGames commented Oct 14, 2023

  • Custom uniforms in shaders are now detected and displayed in the Terrain3DMaterial inspector. Uniforms that begin with _ are considered private and not displayed.
  • All of the hard coded functions for worldnoise parameters are removed and instead the above pulls out the public world noise settings from the shader. It displays them whether they are part of a custom shader or the built in one.
  • Uniforms work as the native data types (int, float, vec*, mat*, etc) and texture objects. I tested ImageTexture (dds), CompressedTexture (png), and NoiseTexture
  • Shader includes work

Fixes #86

src/terrain_3d_material.cpp Outdated Show resolved Hide resolved
@TokisanGames TokisanGames merged commit 0d7b1b7 into main Oct 16, 2023
8 checks passed
@TokisanGames TokisanGames deleted the custom-uniforms branch October 16, 2023 18:29
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.

Support custom uniforms
2 participants