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

ShaderNode: posterize() and reciprocal() #24767

Merged
merged 4 commits into from
Oct 11, 2022
Merged

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Oct 10, 2022

Description

https://en.wikipedia.org/wiki/Posterization

Usage:

// posterize( value, steps )

const tex = texture( dxt5Texture );

material.colorNode = posterize( tex, 3 );

Original:
image

After posterize 3 steps:
image

This contribution is funded by Google

@sunag sunag added this to the r146 milestone Oct 10, 2022
@sunag sunag changed the title ShaderNode: Add posterize() ShaderNode: posterize() Oct 10, 2022
@sunag sunag marked this pull request as ready for review October 10, 2022 05:48
@sunag sunag changed the title ShaderNode: posterize() ShaderNode: posterize() and reciprocal() Oct 10, 2022
@sunag sunag merged commit c63283a into mrdoob:dev Oct 11, 2022
@sunag sunag deleted the dev-posterize-node branch October 11, 2022 20:53
@joshuaellis joshuaellis mentioned this pull request Oct 31, 2022
19 tasks
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