@xeokit/xeokit-sdk
Version:
3D BIM IFC Viewer SDK for AEC engineering applications. Open Source JavaScript Toolkit based on pure WebGL for top performance, real-world coordinates and full double precision
18 lines (16 loc) • 377 B
JavaScript
/**
* @desc A low-level component that represents a WebGL Sampler.
* @private
*/
class Sampler {
constructor(gl, location) {
this.bindTexture = function (texture, unit) {
if (texture.bind(unit)) {
gl.uniform1i(location, unit);
return true;
}
return false;
};
}
}
export {Sampler};