Enumerates all possible filters used when magnifying WebGL textures.
Properties:
Name | Type | Description |
---|---|---|
NEAREST |
Number | Samples the texture by returning the closest pixel. |
LINEAR |
Number | Samples the texture through bi-linear interpolation of the four nearest pixels. This produces smoother results than NEAREST filtering. |
See:
Members
Samples the texture through bi-linear interpolation of the four nearest pixels. This produces smoother results than
NEAREST
filtering.
-
Default Value:
WebGLConstants.LINEAR
Samples the texture by returning the closest pixel.
-
Default Value:
WebGLConstants.NEAREST