From 8d4da0276cf3b79ecd9a2c6b515a299a08d568d1 Mon Sep 17 00:00:00 2001 From: sunag Date: Thu, 11 Feb 2021 03:07:17 -0300 Subject: [PATCH] rename ModelViewProjectionMatrixNode -> ModelViewProjectionNode --- ...ViewProjectionMatrixNode.js => ModelViewProjectionNode.js} | 4 ++-- examples/jsm/renderers/webgpu/nodes/WebGPUNodeBuilder.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename examples/jsm/renderers/nodes/accessors/{ModelViewProjectionMatrixNode.js => ModelViewProjectionNode.js} (88%) diff --git a/examples/jsm/renderers/nodes/accessors/ModelViewProjectionMatrixNode.js b/examples/jsm/renderers/nodes/accessors/ModelViewProjectionNode.js similarity index 88% rename from examples/jsm/renderers/nodes/accessors/ModelViewProjectionMatrixNode.js rename to examples/jsm/renderers/nodes/accessors/ModelViewProjectionNode.js index 820f0e838180ce..2c92f063a67543 100644 --- a/examples/jsm/renderers/nodes/accessors/ModelViewProjectionMatrixNode.js +++ b/examples/jsm/renderers/nodes/accessors/ModelViewProjectionNode.js @@ -4,7 +4,7 @@ import ModelNode from '../accessors/ModelNode.js'; import OperatorNode from '../math/OperatorNode.js'; import PositionNode from '../accessors/PositionNode.js'; -class ModelViewProjectionMatrixNode extends Node { +class ModelViewProjectionNode extends Node { constructor( position = new PositionNode() ) { @@ -29,4 +29,4 @@ class ModelViewProjectionMatrixNode extends Node { } -export default ModelViewProjectionMatrixNode; +export default ModelViewProjectionNode; diff --git a/examples/jsm/renderers/webgpu/nodes/WebGPUNodeBuilder.js b/examples/jsm/renderers/webgpu/nodes/WebGPUNodeBuilder.js index 2381ea6c95335d..9f00359630f36c 100644 --- a/examples/jsm/renderers/webgpu/nodes/WebGPUNodeBuilder.js +++ b/examples/jsm/renderers/webgpu/nodes/WebGPUNodeBuilder.js @@ -8,7 +8,7 @@ import { WebGPUSampledTexture } from '../WebGPUSampledTexture.js'; import NodeSlot from '../../nodes/core/NodeSlot.js'; import NodeBuilder from '../../nodes/core/NodeBuilder.js'; -import ModelViewProjectionMatrixNode from '../../nodes/accessors/ModelViewProjectionMatrixNode.js'; +import ModelViewProjectionNode from '../../nodes/accessors/ModelViewProjectionNode.js'; import ShaderLib from './ShaderLib.js'; @@ -41,7 +41,7 @@ class WebGPUNodeBuilder extends NodeBuilder { if ( material.isMeshBasicMaterial || material.isPointsMaterial || material.isLineBasicMaterial ) { - const mvpNode = new ModelViewProjectionMatrixNode(); + const mvpNode = new ModelViewProjectionNode(); if ( material.positionNode !== undefined ) {