Sampler.js 253 B

123456789101112131415161718
  1. import Binding from './Binding.js';
  2. class Sampler extends Binding {
  3. constructor( name, texture ) {
  4. super( name );
  5. this.texture = texture;
  6. this.version = texture ? texture.version : 0;
  7. this.isSampler = true;
  8. }
  9. }
  10. export default Sampler;