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

Add refract node #1698

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix typo 'reflected' -> 'refracted'
  • Loading branch information
ld-kerley committed Feb 6, 2024
commit 72f25fbc280954977c61280e7d6594a45f646025
2 changes: 1 addition & 1 deletion libraries/stdlib/stdlib_defs.mtlx
Original file line number Diff line number Diff line change
Expand Up @@ -2767,7 +2767,7 @@
The normal vector is assumed to be normalized.
-->
<nodedef name="ND_refract_vector3" node="refract" nodegroup="math" doc="Compute the refraction direction of an input vector.">
<input name="in" type="vector3" value="1.0,0.0,0.0" doc="Input vector to be reflected." />
<input name="in" type="vector3" value="1.0,0.0,0.0" doc="Input vector to be refracted." />
<input name="normal" type="vector3" defaultgeomprop="Nworld" doc="Normal vector." />
<input name="eta" type="float" value="1.0" doc="Ratio of the indices of refraction."/>
jstone-lucasfilm marked this conversation as resolved.
Show resolved Hide resolved
<output name="out" type="vector3" />
Expand Down
Loading