I’m trying to use the following line in my code:
`const atmosphereMaterial = new THREE.MeshBasicNodeMaterial( { side: THREE.BackSide, transparent: true } );`
But doing so raises the error in the browser:
Uncaught TypeError: THREE.MeshBasicNodeMaterial is not a constructor
Thus I tried to import it like so:
import { MeshBasicNodeMaterial } from 'three';
But it still give me the following error:
Uncaught SyntaxError: The requested module ‘three’ does not provide an export named ‘MeshBasicNodeMaterial’
My import is like this:
import * as THREE from 'three';
import { OrbitControls } from '/static/web_dev/three.js-master/examples/jsm/controls/OrbitControls.js';
import { VRButton } from '/static/web_dev/three.js-master/examples/jsm/webxr/VRButton.js';
import { MeshBasicMaterial } from 'three';
import { MeshBasicNodeMaterial } from 'three';
what am I supposed to do ?