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

Change roughness modifier to make puddles #303

Open
TokisanGames opened this issue Jan 22, 2024 · 1 comment
Open

Change roughness modifier to make puddles #303

TokisanGames opened this issue Jan 22, 2024 · 1 comment
Labels
enhancement New feature or request idea Just an idea, may or may not be implemented
Milestone

Comments

@TokisanGames
Copy link
Owner

TokisanGames commented Jan 22, 2024

Description

Painting wetness introduces a roughness modifier that can increase or decrease roughness (-0.5, 0.5). Consider, instead of allowing rougher values, move the range to (-1, 0). (-0.5, 0) still increases wetness as is current. But below -0.5 have it flatten the normal to make puddles.

https://www.youtube.com/watch?v=DxOjiV-vNqM

Interpolate normals:
https://stackoverflow.com/questions/38070899/how-to-interpolate-normals-for-phong-shading-in-opengl
https://en.wikipedia.org/wiki/Slerp
https://hub.jmonkeyengine.org/t/normals-interpolation-in-shader/31598/14

@TokisanGames TokisanGames added enhancement New feature or request idea Just an idea, may or may not be implemented labels Jan 22, 2024
@TokisanGames TokisanGames added this to the Future milestone Jan 22, 2024
@TokisanGames TokisanGames modified the milestones: Future, Beta 0.9.x May 9, 2024
@FishOfTheNorthStar
Copy link
Contributor

I started a discussion about this concept recently, not the exact same implementation but pretty similar. Here's a link:
#375

There's an animated rain drop texture there I made that might come in handy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request idea Just an idea, may or may not be implemented
Projects
Status: 0.9.3
Development

No branches or pull requests

2 participants