WebGPUNodeUniformsGroup.js 614 B

1234567891011121314151617181920212223242526272829
  1. import WebGPUUniformsGroup from '../WebGPUUniformsGroup.js';
  2. class WebGPUNodeUniformsGroup extends WebGPUUniformsGroup {
  3. constructor( shaderStage ) {
  4. super( 'nodeUniforms' );
  5. let shaderStageVisibility;
  6. if ( shaderStage === 'vertex' ) shaderStageVisibility = GPUShaderStage.VERTEX;
  7. else if ( shaderStage === 'fragment' ) shaderStageVisibility = GPUShaderStage.FRAGMENT;
  8. this.setVisibility( shaderStageVisibility );
  9. //this.setOnBeforeUpdate( this._onBeforeUpdate );
  10. }
  11. /*
  12. _onBeforeUpdate( object, camera ) {
  13. const material = object.material;
  14. }
  15. */
  16. }
  17. export default WebGPUUniformsGroup;