Skip to content

Add $refracttintrespectamount to SDK_Refract - #514

Open
Blixibon wants to merge 1 commit into
mapbase-source:developfrom
Blixibon:mapbase/feature/refract-tint-respect-amt
Open

Blixibon wants to merge 1 commit into
mapbase-source:developfrom
Blixibon:mapbase/feature/refract-tint-respect-amt

Conversation

@Blixibon

Copy link
Copy Markdown
Member

This PR adds a new parameter called $refracttintrespectamount to SDK_Refract. This parameter causes the refract tint color to blend proportionally to refract scale.


PR Checklist

  • My PR follows all guidelines in the CONTRIBUTING.md file
  • My PR targets a develop branch OR targets another branch with a specific goal in mind

#endif

#if REFRACTTINTRESPECTAMOUNT
refractTintColor = lerp( float3(1,1,1), refractTintColor, g_RefractScale );

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we be clamping g_RefractScale here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't clamped elsewhere in the shader. Is it more important to do that when using it as a lerp ratio?

…or to blend from no tint to full tint based on refract scale)
@Blixibon
Blixibon force-pushed the mapbase/feature/refract-tint-respect-amt branch from 24c8171 to 77f8b22 Compare November 29, 2026 15:09
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.

2 participants