mirror of
https://github.com/jiawanlong/Cesium-Examples.git
synced 2025-07-07 16:57:30 +00:00
28 lines
482 B
JavaScript
28 lines
482 B
JavaScript
import NodeMaterial, { addNodeMaterial } from './NodeMaterial.js';
|
|
|
|
import { MeshBasicMaterial } from 'three';
|
|
|
|
const defaultValues = new MeshBasicMaterial();
|
|
|
|
class MeshBasicNodeMaterial extends NodeMaterial {
|
|
|
|
constructor( parameters ) {
|
|
|
|
super();
|
|
|
|
this.isMeshBasicNodeMaterial = true;
|
|
|
|
this.lights = false;
|
|
|
|
this.setDefaultValues( defaultValues );
|
|
|
|
this.setValues( parameters );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export default MeshBasicNodeMaterial;
|
|
|
|
addNodeMaterial( MeshBasicNodeMaterial );
|