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: Introduction to fragmentNode #27239

Merged
merged 2 commits into from
Nov 23, 2023
Merged

TSL: Introduction to fragmentNode #27239

merged 2 commits into from
Nov 23, 2023

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Nov 23, 2023

Related issue: #26419

Description

We have two options for handling the output:

  • outputNode: Handles the total output using outputNode = output.someMethod(), but keeps all connections made in colorNode and more entries from NodeMaterial. Userful for FX.

  • fragmentNode: Replace all fragment connections in NodeMaterial like colorNode by .fragmentNode. Userful for unlit shaders.

@sunag sunag added the TSL Three.js Shading Language label Nov 23, 2023
@sunag sunag added this to the r159 milestone Nov 23, 2023
@sunag sunag marked this pull request as ready for review November 23, 2023 19:48
@sunag sunag merged commit 1ab4a8a into mrdoob:dev Nov 23, 2023
11 checks passed
@sunag sunag deleted the dev-fragmentNode branch November 23, 2023 21:18
AdaRoseCannon pushed a commit to AdaRoseCannon/three.js that referenced this pull request Jan 15, 2024
* Introduction to fragmentNode

* revision
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