-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
New WebGLNodeBuilder + Nodes: transmission #24453
Conversation
Yees! hehe 😁 I put a three.js/examples/webgl_nodes_loader_gltf_transmission.html Lines 87 to 89 in f24997e
|
Yeah, it looks like it's broken otherwise 😅 |
Ok, done!! |
const checkerNode = checker( mul( add( uv(), vec2( 0, timerLocal( - .05 ) ) ), 7 ) ); | ||
|
||
const nodeMaterial = NodeMaterial.fromMaterial( material ); | ||
nodeMaterial.transmissionNode = float( 1 ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can write just 1
and 1.5
without any float()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that no! This can't support primitive values here, just Node classes.
Updated :) |
Thanks! |
* Cache CheckerNode if necessary * Nodes: Refactor, ior, specular, transmission nodes * update example * add transmission example * update transmission * update transmission (2) * update screenshot
* Cache CheckerNode if necessary * Nodes: Refactor, ior, specular, transmission nodes * update example * add transmission example * update transmission * update transmission (2) * update screenshot
Related issue: #24385
Description
Part 4 / 4
I rewrote the Slots API and I added
transmission*Node
andspecular*Node
,iorNode
.Now
WebGLNodeBuilder
can detect the precedence of the slots and added the code/snippet always in the correct sequence.This contribution is funded by Google via Igalia