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

TSL: Add output and material.outputNode #26419

Merged
merged 2 commits into from
Jul 13, 2023
Merged

TSL: Add output and material.outputNode #26419

merged 2 commits into from
Jul 13, 2023

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Jul 12, 2023

Related issue: #26409 (comment)

Description

I create a simple posterize effect using outputNode, it can be used to create effects like cel shader, overlay and others.

// output -- shader result

material.outputNode = vec4( output.rgb.saturation( 0 ), output.a );

image

@sunag sunag added the TSL Three.js Shading Language label Jul 12, 2023
@sunag sunag added this to the r155 milestone Jul 12, 2023
@sunag sunag marked this pull request as ready for review July 13, 2023 19:01
@sunag sunag merged commit 986e898 into mrdoob:dev Jul 13, 2023
@sunag sunag deleted the dev-output branch July 13, 2023 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TSL Three.js Shading Language
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant