Skip to content

Commit

Permalink
Implemented modelWorldMatrixInverse changes to ModelNode.js from #28433
Browse files Browse the repository at this point in the history
  • Loading branch information
cmhhelgeson committed May 20, 2024
1 parent 82b6263 commit 7e8bded
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions types/three/examples/jsm/nodes/Nodes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ export {
modelViewMatrix,
modelViewPosition,
modelWorldMatrix,
modelWorldMatrixInverse,
} from "./accessors/ModelNode.js";
export { default as ModelViewProjectionNode, modelViewProjection } from "./accessors/ModelViewProjectionNode.js";
export {
Expand Down
3 changes: 3 additions & 0 deletions types/three/examples/jsm/nodes/accessors/ModelNode.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { Matrix4 } from "three/src/Three.js";
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
import Object3DNode from "./Object3DNode.js";
import { UniformNode } from "../Nodes.js";

/**
* Similar to {@link Object3DNode} but the object comes from {@link NodeFrame}
Expand All @@ -15,3 +17,4 @@ export const modelWorldMatrix: ShaderNodeObject<ModelNode>;
export const modelPosition: ShaderNodeObject<ModelNode>;
export const modelScale: ShaderNodeObject<ModelNode>;
export const modelViewPosition: ShaderNodeObject<ModelNode>;
export const modelWorldMatrixInverse: ShaderNodeObject<UniformNode<Matrix4>>;

0 comments on commit 7e8bded

Please sign in to comment.