@@ -7,53 +7,68 @@ define([
7
7
'use strict' ;
8
8
9
9
/**
10
- * Enumerates all possible filters used when minifying WebGL textures, which takes places when zooming
11
- * out of imagery. Provides the possible values for the {@link ImageryLayer#minificationFilter} property.
10
+ * Enumerates all possible filters used when minifying WebGL textures.
12
11
*
13
12
* @exports TextureMinificationFilter
14
13
*
15
14
* @see TextureMagnificationFilter
16
- * @see ImageryLayer#minificationFilter
17
15
*/
18
16
var TextureMinificationFilter = {
19
17
/**
20
- * Nearest neighbor sampling of image pixels to texture .
18
+ * Samples the texture by returning the closest pixel .
21
19
*
22
20
* @type {Number }
23
21
* @constant
24
22
*/
25
23
NEAREST : WebGLConstants . NEAREST ,
26
24
/**
27
- * Bi -linear interpolation of image pixels to texture .
25
+ * Samples the texture through bi -linear interpolation of the four nearest pixels. This produces smoother results than <code>NEAREST</code> filtering .
28
26
*
29
27
* @type {Number }
30
28
* @constant
31
29
*/
32
30
LINEAR : WebGLConstants . LINEAR ,
33
31
/**
34
- * WebGL <code>NEAREST_MIPMAP_NEAREST</code> interpolation of image pixels to texture.
32
+ * Selects the nearest mip level and applies nearest sampling within that level.
33
+ * <p>
34
+ * Requires that the texture has a mipmap. The mip level is chosen by the view angle and screen-space size of the texture.
35
+ * </p>
35
36
*
36
37
* @type {Number }
37
38
* @constant
38
39
*/
39
40
NEAREST_MIPMAP_NEAREST : WebGLConstants . NEAREST_MIPMAP_NEAREST ,
40
41
/**
41
- * WebGL <code>LINEAR_MIPMAP_NEAREST</code> interpolation of image pixels to texture.
42
+ * Selects the nearest mip level and applies linear sampling within that level.
43
+ * <p>
44
+ * Requires that the texture has a mipmap. The mip level is chosen by the view angle and screen-space size of the texture.
45
+ * </p>
42
46
*
43
47
* @type {Number }
44
48
* @constant
45
49
*/
46
50
LINEAR_MIPMAP_NEAREST : WebGLConstants . LINEAR_MIPMAP_NEAREST ,
47
51
/**
48
- * WebGL <code>NEAREST_MIPMAP_LINEAR</code> interpolation of image pixels to texture.
52
+ * Read texture values with nearest sampling from two adjacent mip levels and linearly interpolate the results.
53
+ * <p>
54
+ * This option provides a good balance of visual quality and speed when sampling from a mipmapped texture.
55
+ * </p>
56
+ * <p>
57
+ * Requires that the texture has a mipmap. The mip level is chosen by the view angle and screen-space size of the texture.
58
+ * </p>
49
59
*
50
60
* @type {Number }
51
61
* @constant
52
62
*/
53
63
NEAREST_MIPMAP_LINEAR : WebGLConstants . NEAREST_MIPMAP_LINEAR ,
54
64
/**
55
- * WebGL <code>LINEAR_MIPMAP_LINEAR</code> interpolation of image pixels to texture.
56
- *
65
+ * Read texture values with linear sampling from two adjacent mip levels and linearly interpolate the results.
66
+ * <p>
67
+ * This option provides a good balance of visual quality and speed when sampling from a mipmapped texture.
68
+ * </p>
69
+ * <p>
70
+ * Requires that the texture has a mipmap. The mip level is chosen by the view angle and screen-space size of the texture.
71
+ * </p>
57
72
* @type {Number }
58
73
* @constant
59
74
*/
0 commit comments