Skip to content

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