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

Nodes: Rename invert() -> oneMinus() #430

Merged
merged 2 commits into from
Apr 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions types/three/examples/jsm/nodes/math/MathNode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export type MathNodeMethod1 =
| typeof MathNode.SIGN
| typeof MathNode.LENGTH
| typeof MathNode.NEGATE
| typeof MathNode.INVERT
| typeof MathNode.ONE_MINUS
| typeof MathNode.DFDX
| typeof MathNode.DFDY
| typeof MathNode.ROUND;
Expand Down Expand Up @@ -76,7 +76,7 @@ export default class MathNode extends TempNode {
static SIGN: 'sign';
static LENGTH: 'length';
static NEGATE: 'negate';
static INVERT: 'invert';
static ONE_MINUS: 'oneMinus';
static DFDX: 'dFdx';
static DFDY: 'dFdy';
static ROUND: 'round';
Expand Down
2 changes: 1 addition & 1 deletion types/three/test/nodes/nodes-ShaderNodeBaseElements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export const abs = nodeProxy(MathNode, MathNode.ABS);
export const sign = nodeProxy(MathNode, MathNode.SIGN);
export const length = nodeProxy(MathNode, MathNode.LENGTH);
export const negate = nodeProxy(MathNode, MathNode.NEGATE);
export const invert = nodeProxy(MathNode, MathNode.INVERT);
export const oneMinus = nodeProxy(MathNode, MathNode.ONE_MINUS);
export const dFdx = nodeProxy(MathNode, MathNode.DFDX);
export const dFdy = nodeProxy(MathNode, MathNode.DFDY);
export const round = nodeProxy(MathNode, MathNode.ROUND);
Expand Down