19 lines
253 B
JavaScript
19 lines
253 B
JavaScript
import Binding from './Binding.js';
|
|
|
|
class Sampler extends Binding {
|
|
|
|
constructor( name, texture ) {
|
|
|
|
super( name );
|
|
|
|
this.texture = texture;
|
|
this.version = texture ? texture.version : 0;
|
|
|
|
this.isSampler = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export default Sampler;
|