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

Convert control map to new format #234

Merged
merged 15 commits into from
Nov 16, 2023
Merged

Convert control map to new format #234

merged 15 commits into from
Nov 16, 2023

Conversation

TokisanGames
Copy link
Owner

@TokisanGames TokisanGames commented Oct 20, 2023

C++

  • Converts old RGB8 control maps to new 32-bit integer (stored as RF) format
  • Editor changed to write this format
  • Automatically generates default noise texture if blank

GDScript

  • Hide opacity for paint texture
  • Change tooltip names
  • Improve handling of mouse clicks and edit operations

Shader

  • Changed to read the new format
  • Weights are separated out from material function
  • More documentation and clarity
  • Adds option for alpha blending instead of height
  • Adds blend sharpness
  • Adds slot for noise texture, which is used for blending
  • Debug shaders now has two for Control map. Control texture shows base/overlay textures as red/green brightness is index 0-32. Control blend shows greyscale blend value. Good for viewing the blend noise.

Fixes #115

@TokisanGames TokisanGames changed the title WIP: Convert control map to new format Convert control map to new format Nov 16, 2023
@TokisanGames TokisanGames marked this pull request as ready for review November 16, 2023 00:19
@TokisanGames TokisanGames merged commit a747f40 into main Nov 16, 2023
8 checks passed
@TokisanGames TokisanGames deleted the controlmap-format branch November 16, 2023 12:43
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.

Convert control map from 8/8/8 to 5/5/3/1
1 participant