|
@@ -4,6 +4,7 @@ import { MeshBasicMaterial } from '../../materials/MeshBasicMaterial.js';
|
|
|
import BasicEnvironmentNode from '../lighting/BasicEnvironmentNode.js';
|
|
|
import BasicLightMapNode from '../lighting/BasicLightMapNode.js';
|
|
|
import BasicLightingModel from '../functions/BasicLightingModel.js';
|
|
|
+import { transformedNormalView, normalView } from '../accessors/NormalNode.js';
|
|
|
|
|
|
const defaultValues = new MeshBasicMaterial();
|
|
|
|
|
@@ -24,6 +25,12 @@ class MeshBasicNodeMaterial extends NodeMaterial {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ setupNormal() {
|
|
|
+
|
|
|
+ transformedNormalView.assign( normalView ); // see #28839
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
setupEnvironment( builder ) {
|
|
|
|
|
|
const envNode = super.setupEnvironment( builder );
|