修改静态资源文件夹位置
This commit is contained in:
39
public/sdk/three/jsm/nodes/materials/PointsNodeMaterial.js
Normal file
39
public/sdk/three/jsm/nodes/materials/PointsNodeMaterial.js
Normal file
@ -0,0 +1,39 @@
|
||||
import NodeMaterial, { addNodeMaterial } from './NodeMaterial.js';
|
||||
|
||||
import { PointsMaterial } from 'three';
|
||||
|
||||
const defaultValues = new PointsMaterial();
|
||||
|
||||
class PointsNodeMaterial extends NodeMaterial {
|
||||
|
||||
constructor( parameters ) {
|
||||
|
||||
super();
|
||||
|
||||
this.isPointsNodeMaterial = true;
|
||||
|
||||
this.lights = false;
|
||||
this.normals = false;
|
||||
this.transparent = true;
|
||||
|
||||
this.sizeNode = null;
|
||||
|
||||
this.setDefaultValues( defaultValues );
|
||||
|
||||
this.setValues( parameters );
|
||||
|
||||
}
|
||||
|
||||
copy( source ) {
|
||||
|
||||
this.sizeNode = source.sizeNode;
|
||||
|
||||
return super.copy( source );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default PointsNodeMaterial;
|
||||
|
||||
addNodeMaterial( 'PointsNodeMaterial', PointsNodeMaterial );
|
Reference in New Issue
Block a user