Preparing search index...
The search index is not available
@xeokit/sdk - v0.1.0
@xeokit/sdk
webglutils
WebGLSampler
Class WebGLSampler
Represents a WebGL2 sampler.
Index
Constructors
constructor
Methods
bind
Texture
Constructors
constructor
new
WebGLSampler
(
gl
:
WebGL2RenderingContext
,
location
:
WebGLUniformLocation
,
)
:
WebGLSampler
Creates a new sampler.
Parameters
gl
:
WebGL2RenderingContext
location
:
WebGLUniformLocation
Returns
WebGLSampler
Methods
bind
Texture
bindTexture
(
texture
:
WebGLAbstractTexture
,
unit
:
number
)
:
boolean
Binds a texture to this sampler.
Parameters
texture
:
WebGLAbstractTexture
unit
:
number
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
bind
Texture
@xeokit/sdk - v0.1.0
Loading...
Represents a WebGL2 sampler.