1234567891011121314151617181920212223242526272829 |
- import WebGPUUniformsGroup from '../WebGPUUniformsGroup.js';
- class WebGPUNodeUniformsGroup extends WebGPUUniformsGroup {
- constructor( shaderStage ) {
- super( 'nodeUniforms' );
- let shaderStageVisibility;
- if ( shaderStage === 'vertex' ) shaderStageVisibility = GPUShaderStage.VERTEX;
- else if ( shaderStage === 'fragment' ) shaderStageVisibility = GPUShaderStage.FRAGMENT;
- this.setVisibility( shaderStageVisibility );
- //this.setOnBeforeUpdate( this._onBeforeUpdate );
- }
- /*
- _onBeforeUpdate( object, camera ) {
- const material = object.material;
- }
- */
- }
- export default WebGPUUniformsGroup;
|