preact
This commit is contained in:
parent
6acf267d48
commit
b7614eb3f8
4794 changed files with 1280808 additions and 1546 deletions
34
frontend/node_modules/three/examples/jsm/nodes/materials/MeshToonNodeMaterial.js
generated
vendored
Normal file
34
frontend/node_modules/three/examples/jsm/nodes/materials/MeshToonNodeMaterial.js
generated
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
import NodeMaterial, { addNodeMaterial } from './NodeMaterial.js';
|
||||
import ToonLightingModel from '../functions/ToonLightingModel.js';
|
||||
|
||||
import { MeshToonMaterial } from 'three';
|
||||
|
||||
const defaultValues = new MeshToonMaterial();
|
||||
|
||||
class MeshToonNodeMaterial extends NodeMaterial {
|
||||
|
||||
constructor( parameters ) {
|
||||
|
||||
super();
|
||||
|
||||
this.isMeshToonNodeMaterial = true;
|
||||
|
||||
this.lights = true;
|
||||
|
||||
this.setDefaultValues( defaultValues );
|
||||
|
||||
this.setValues( parameters );
|
||||
|
||||
}
|
||||
|
||||
setupLightingModel( /*builder*/ ) {
|
||||
|
||||
return new ToonLightingModel();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default MeshToonNodeMaterial;
|
||||
|
||||
addNodeMaterial( 'MeshToonNodeMaterial', MeshToonNodeMaterial );
|
||||
Loading…
Add table
Add a link
Reference in a new issue