添加关照、全局等高线、修改图层问题
This commit is contained in:
		
							
								
								
									
										34
									
								
								static/sdk/three/jsm/nodes/materials/ShadowNodeMaterial.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								static/sdk/three/jsm/nodes/materials/ShadowNodeMaterial.js
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,34 @@ | ||||
| import NodeMaterial, { addNodeMaterial } from './NodeMaterial.js'; | ||||
| import ShadowMaskModel from '../functions/ShadowMaskModel.js'; | ||||
|  | ||||
| import { ShadowMaterial } from 'three'; | ||||
|  | ||||
| const defaultValues = new ShadowMaterial(); | ||||
|  | ||||
| class ShadowNodeMaterial extends NodeMaterial { | ||||
|  | ||||
| 	constructor( parameters ) { | ||||
|  | ||||
| 		super(); | ||||
|  | ||||
| 		this.isShadowNodeMaterial = true; | ||||
|  | ||||
| 		this.lights = true; | ||||
|  | ||||
| 		this.setDefaultValues( defaultValues ); | ||||
|  | ||||
| 		this.setValues( parameters ); | ||||
|  | ||||
| 	} | ||||
|  | ||||
| 	setupLightingModel( /*builder*/ ) { | ||||
|  | ||||
| 		return new ShadowMaskModel(); | ||||
|  | ||||
| 	} | ||||
|  | ||||
| } | ||||
|  | ||||
| export default ShadowNodeMaterial; | ||||
|  | ||||
| addNodeMaterial( 'ShadowNodeMaterial', ShadowNodeMaterial ); | ||||
		Reference in New Issue
	
	Block a user