Buckets:
| import NodeMaterial from './NodeMaterial.js'; | |
| import ShadowMaskModel from '../../nodes/functions/ShadowMaskModel.js'; | |
| import { ShadowMaterial } from '../ShadowMaterial.js'; | |
| const _defaultValues = /*@__PURE__*/ new ShadowMaterial(); | |
| /** | |
| * Node material version of {@link ShadowMaterial}. | |
| * | |
| * @augments NodeMaterial | |
| */ | |
| class ShadowNodeMaterial extends NodeMaterial { | |
| static get type() { | |
| return 'ShadowNodeMaterial'; | |
| } | |
| /** | |
| * Constructs a new shadow node material. | |
| * | |
| * @param {Object} [parameters] - The configuration parameter. | |
| */ | |
| constructor( parameters ) { | |
| super(); | |
| /** | |
| * This flag can be used for type testing. | |
| * | |
| * @type {boolean} | |
| * @readonly | |
| * @default true | |
| */ | |
| this.isShadowNodeMaterial = true; | |
| /** | |
| * Set to `true` because so it's possible to implement | |
| * the shadow mask effect. | |
| * | |
| * @type {boolean} | |
| * @default true | |
| */ | |
| this.lights = true; | |
| /** | |
| * Overwritten since shadow materials are transparent | |
| * by default. | |
| * | |
| * @type {boolean} | |
| * @default true | |
| */ | |
| this.transparent = true; | |
| this.setDefaultValues( _defaultValues ); | |
| this.setValues( parameters ); | |
| } | |
| /** | |
| * Setups the lighting model. | |
| * | |
| * @return {ShadowMaskModel} The lighting model. | |
| */ | |
| setupLightingModel( /*builder*/ ) { | |
| return new ShadowMaskModel(); | |
| } | |
| } | |
| export default ShadowNodeMaterial; | |
Xet Storage Details
- Size:
- 1.36 kB
- Xet hash:
- ce45d3f4c15bc6b566f3aa7a0c1be6fa12e9dc850431662836b43d47a76125e5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.