-
-
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
NodeEditor: Add missing position entries #23310
NodeEditor: Add missing position entries #23310
Conversation
Add missing normal entry according to NormalNode Add missing Angle/Trigonometry functions
@@ -13,7 +13,8 @@ export class NormalEditor extends BaseNode { | |||
const optionsField = new SelectInput( [ | |||
{ name: 'Local', value: NormalNode.LOCAL }, | |||
{ name: 'World', value: NormalNode.WORLD }, | |||
{ name: 'View', value: NormalNode.VIEW } | |||
{ name: 'View', value: NormalNode.VIEW }, | |||
{ name: 'Geometry', value: NormalNode.GEOMETRY }, |
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 we can remove it ,
and others at the end of the array.
@@ -10,12 +10,19 @@ export class TrigonometryEditor extends BaseNode { | |||
|
|||
const node = new MathNode( MathNode.SIN, DEFAULT_VALUE ); | |||
|
|||
super( 'Trigonometry', 1, node, 175 ); | |||
super( 'Angle / Trigonometry', 1, node, 220 ); |
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 wish I had separated Angle
from Trigonometry
in Editor
. @mrdoob Some suggestion?
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.
Do you mean having a node that mostly converts radians to degrees?
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.
Yes, yes. A Node in Editor only for it.
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 sounds good yes 👍
Add missing position entry according to PositionNode
Add missing normal entry according to NormalNode
Add missing Angle/Trigonometry functions