cesium 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/Cesium.js +5 -2
- data/app/assets/javascripts/Core/Cartesian2.js +58 -0
- data/app/assets/javascripts/Core/Cartesian3.js +67 -7
- data/app/assets/javascripts/Core/Cartesian4.js +63 -0
- data/app/assets/javascripts/Core/CatmullRomSpline.js +183 -163
- data/app/assets/javascripts/Core/CorridorGeometry.js +2 -2
- data/app/assets/javascripts/Core/Ellipsoid.js +16 -0
- data/app/assets/javascripts/Core/ExtentGeometry.js +9 -2
- data/app/assets/javascripts/Core/ExtentOutlineGeometry.js +2 -2
- data/app/assets/javascripts/Core/GeometryPipeline.js +23 -23
- data/app/assets/javascripts/Core/HermiteSpline.js +260 -155
- data/app/assets/javascripts/Core/IndexDatatype.js +43 -34
- data/app/assets/javascripts/Core/LinearSpline.js +118 -0
- data/app/assets/javascripts/Core/Math.js +34 -3
- data/app/assets/javascripts/Core/Matrix2.js +26 -0
- data/app/assets/javascripts/Core/Matrix3.js +98 -0
- data/app/assets/javascripts/Core/Matrix4.js +42 -0
- data/app/assets/javascripts/Core/ObjectOrientedBoundingBox.js +396 -0
- data/app/assets/javascripts/Core/PolygonGeometry.js +87 -47
- data/app/assets/javascripts/Core/PolygonGeometryLibrary.js +20 -17
- data/app/assets/javascripts/Core/PolygonOutlineGeometry.js +68 -40
- data/app/assets/javascripts/Core/PolygonPipeline.js +19 -9
- data/app/assets/javascripts/Core/PrimitiveType.js +33 -36
- data/app/assets/javascripts/Core/Quaternion.js +147 -1
- data/app/assets/javascripts/Core/QuaternionSpline.js +160 -0
- data/app/assets/javascripts/Core/Spline.js +121 -0
- data/app/assets/javascripts/Core/Transforms.js +0 -2
- data/app/assets/javascripts/Core/loadArrayBuffer.js +5 -1
- data/app/assets/javascripts/Core/loadBlob.js +5 -1
- data/app/assets/javascripts/Core/loadText.js +4 -1
- data/app/assets/javascripts/Core/loadWithXhr.js +30 -14
- data/app/assets/javascripts/DynamicScene/PolylineOutlineMaterialProperty.js +2 -2
- data/app/assets/javascripts/Renderer/AutomaticUniforms.js +41 -41
- data/app/assets/javascripts/Renderer/Context.js +171 -201
- data/app/assets/javascripts/Renderer/CubeMapFace.js +2 -2
- data/app/assets/javascripts/Renderer/DrawCommand.js +2 -2
- data/app/assets/javascripts/Renderer/PixelFormat.js +22 -28
- data/app/assets/javascripts/Renderer/ShaderProgram.js +65 -46
- data/app/assets/javascripts/Renderer/Texture.js +1 -1
- data/app/assets/javascripts/Renderer/TextureMagnificationFilter.js +7 -9
- data/app/assets/javascripts/Renderer/TextureMinificationFilter.js +19 -25
- data/app/assets/javascripts/Renderer/TextureWrap.js +11 -13
- data/app/assets/javascripts/Renderer/UniformDatatype.js +29 -29
- data/app/assets/javascripts/Renderer/VertexArray.js +43 -35
- data/app/assets/javascripts/Scene/ArcGisMapServerImageryProvider.js +1 -2
- data/app/assets/javascripts/Scene/BillboardCollection.js +10 -1
- data/app/assets/javascripts/Scene/CameraFlightPath.js +58 -101
- data/app/assets/javascripts/Scene/CentralBody.js +1 -4
- data/app/assets/javascripts/Scene/CentralBodySurface.js +1 -2
- data/app/assets/javascripts/Scene/CesiumTerrainProvider.js +1 -2
- data/app/assets/javascripts/Scene/CustomSensorVolume.js +17 -3
- data/app/assets/javascripts/Scene/EllipsoidPrimitive.js +20 -5
- data/app/assets/javascripts/Scene/EllipsoidSurfaceAppearance.js +1 -2
- data/app/assets/javascripts/Scene/FrameState.js +1 -3
- data/app/assets/javascripts/Scene/GoogleEarthImageryProvider.js +2 -5
- data/app/assets/javascripts/Scene/OpenStreetMapImageryProvider.js +1 -2
- data/app/assets/javascripts/Scene/OrthographicFrustum.js +1 -2
- data/app/assets/javascripts/Scene/PerspectiveOffCenterFrustum.js +1 -2
- data/app/assets/javascripts/Scene/Polygon.js +1 -3
- data/app/assets/javascripts/Scene/Polyline.js +5 -2
- data/app/assets/javascripts/Scene/PolylineCollection.js +4 -6
- data/app/assets/javascripts/Scene/Primitive.js +19 -13
- data/app/assets/javascripts/Scene/PrimitivePipeline.js +1 -1
- data/app/assets/javascripts/Scene/Scene.js +7 -10
- data/app/assets/javascripts/Scene/SceneTransforms.js +1 -3
- data/app/assets/javascripts/Scene/SceneTransitioner.js +11 -11
- data/app/assets/javascripts/Scene/SingleTileImageryProvider.js +1 -2
- data/app/assets/javascripts/Scene/TexturePool.js +1 -1
- data/app/assets/javascripts/Scene/TileMapServiceImageryProvider.js +1 -2
- data/app/assets/javascripts/Scene/VRTheWorldTerrainProvider.js +1 -2
- data/app/assets/javascripts/Scene/ViewportQuad.js +1 -3
- data/app/assets/javascripts/Scene/WebMapServiceImageryProvider.js +1 -2
- data/app/assets/javascripts/ThirdParty/knockout-3.0.0.js +6 -3
- data/app/assets/javascripts/Widgets/CesiumWidget/CesiumWidget.js +4 -3
- data/app/assets/javascripts/Widgets/SceneModePicker/SceneModePickerViewModel.js +1 -1
- data/app/assets/javascripts/Widgets/Viewer/Viewer.js +5 -5
- data/app/assets/javascripts/Widgets/Viewer/viewerDragDropMixin.js +13 -13
- data/app/assets/javascripts/Widgets/Viewer/viewerDynamicObjectMixin.js +6 -6
- data/app/assets/javascripts/Widgets/widgets.css +1 -1
- data/lib/cesium/version.rb +1 -1
- metadata +6 -3
- data/app/assets/javascripts/Core/OrientationInterpolator.js +0 -106
@@ -91,9 +91,9 @@ define(['Core/defaultValue', 'Core/DeveloperError', 'Renderer/PixelDatatype'], f
|
|
91
91
|
|
92
92
|
//Firefox bug: texSubImage2D has overloads and can't resolve our enums, so we use + to explicitly convert to a number.
|
93
93
|
if (source.arrayBufferView) {
|
94
|
-
gl.texSubImage2D(this._targetFace, 0, xOffset, yOffset, width, height,
|
94
|
+
gl.texSubImage2D(this._targetFace, 0, xOffset, yOffset, width, height, this._pixelFormat, +this._pixelDatatype, source.arrayBufferView);
|
95
95
|
} else {
|
96
|
-
gl.texSubImage2D(this._targetFace, 0, xOffset, yOffset,
|
96
|
+
gl.texSubImage2D(this._targetFace, 0, xOffset, yOffset, this._pixelFormat, +this._pixelDatatype, source);
|
97
97
|
}
|
98
98
|
|
99
99
|
gl.bindTexture(target, null);
|
@@ -13,7 +13,7 @@ define(function() {
|
|
13
13
|
*/
|
14
14
|
var DrawCommand = function() {
|
15
15
|
/**
|
16
|
-
* The bounding volume of the geometry. This is used for culling and frustum selection.
|
16
|
+
* The bounding volume of the geometry in world space. This is used for culling and frustum selection.
|
17
17
|
* <p>
|
18
18
|
* For best rendering performance, use the tightest possible bounding volume. Although
|
19
19
|
* <code>undefined</code> is allowed, always try to provide a bounding volume to
|
@@ -85,7 +85,7 @@ define(function() {
|
|
85
85
|
*
|
86
86
|
* @default undefined
|
87
87
|
*/
|
88
|
-
this.offset =
|
88
|
+
this.offset = 0;
|
89
89
|
|
90
90
|
/**
|
91
91
|
* The shader program to apply.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*global define*/
|
2
|
-
define(
|
2
|
+
define(function() {
|
3
3
|
"use strict";
|
4
4
|
|
5
5
|
/**
|
@@ -9,67 +9,61 @@ define(['Core/Enumeration'], function(Enumeration) {
|
|
9
9
|
*/
|
10
10
|
var PixelFormat = {
|
11
11
|
/**
|
12
|
-
* A pixel format containing a depth value.
|
12
|
+
* 0x1902. A pixel format containing a depth value.
|
13
13
|
*
|
14
|
-
* @type {
|
14
|
+
* @type {Number}
|
15
15
|
* @constant
|
16
|
-
* @default 0x1902
|
17
16
|
*/
|
18
|
-
DEPTH_COMPONENT :
|
17
|
+
DEPTH_COMPONENT : 0x1902,
|
19
18
|
|
20
19
|
/**
|
21
|
-
* A pixel format containing a depth and stencil value, most often used with {@link PixelDatatype.UNSIGNED_INT_24_8_WEBGL}.
|
20
|
+
* 0x84F9. A pixel format containing a depth and stencil value, most often used with {@link PixelDatatype.UNSIGNED_INT_24_8_WEBGL}.
|
22
21
|
*
|
23
|
-
* @type {
|
22
|
+
* @type {Number}
|
24
23
|
* @constant
|
25
|
-
* @default 0x84F9
|
26
24
|
*/
|
27
|
-
DEPTH_STENCIL :
|
25
|
+
DEPTH_STENCIL : 0x84F9,
|
28
26
|
|
29
27
|
/**
|
30
|
-
*
|
28
|
+
* 0x1906. A pixel format containing an alpha channel.
|
31
29
|
*
|
32
|
-
* @type {
|
30
|
+
* @type {Number}
|
33
31
|
* @constant
|
34
|
-
* @default 0x1906
|
35
32
|
*/
|
36
|
-
ALPHA :
|
33
|
+
ALPHA : 0x1906,
|
37
34
|
|
38
35
|
/**
|
39
|
-
*
|
36
|
+
* 0x1907. A pixel format containing red, green, and blue channels.
|
40
37
|
*
|
41
|
-
* @type {
|
38
|
+
* @type {Number}
|
42
39
|
* @constant
|
43
|
-
* @default 0x1907
|
44
40
|
*/
|
45
|
-
RGB :
|
41
|
+
RGB : 0x1907,
|
46
42
|
|
47
43
|
/**
|
48
|
-
*
|
44
|
+
* 0x1908. A pixel format containing red, green, blue, and alpha channels.
|
49
45
|
*
|
50
|
-
* @type {
|
46
|
+
* @type {Number}
|
51
47
|
* @constant
|
52
|
-
* @default 0x1908
|
53
48
|
*/
|
54
|
-
RGBA :
|
49
|
+
RGBA : 0x1908,
|
55
50
|
|
56
51
|
/**
|
57
|
-
*
|
52
|
+
* 0x1909. A pixel format containing a luminance (intensity) channel.
|
58
53
|
*
|
59
|
-
* @type {
|
54
|
+
* @type {Number}
|
60
55
|
* @constant
|
61
|
-
* @default 0x1909
|
62
56
|
*/
|
63
|
-
LUMINANCE :
|
57
|
+
LUMINANCE : 0x1909,
|
64
58
|
|
65
59
|
/**
|
66
|
-
*
|
60
|
+
* 0x190A. A pixel format containing luminance (intensity) and alpha channels.
|
67
61
|
*
|
68
|
-
* @type {
|
62
|
+
* @type {Number}
|
69
63
|
* @constant
|
70
64
|
* @default 0x190A
|
71
65
|
*/
|
72
|
-
LUMINANCE_ALPHA :
|
66
|
+
LUMINANCE_ALPHA : 0x190A,
|
73
67
|
|
74
68
|
/**
|
75
69
|
* Returns true if the pixel format is a valid enumeration value.
|
@@ -22,15 +22,15 @@ define(['Core/defined', 'Core/DeveloperError', 'Core/FeatureDetection', 'Core/Ru
|
|
22
22
|
};
|
23
23
|
case gl.FLOAT_VEC2:
|
24
24
|
return function() {
|
25
|
-
return UniformDatatype.
|
25
|
+
return UniformDatatype.FLOAT_VEC2;
|
26
26
|
};
|
27
27
|
case gl.FLOAT_VEC3:
|
28
28
|
return function() {
|
29
|
-
return UniformDatatype.
|
29
|
+
return UniformDatatype.FLOAT_VEC3;
|
30
30
|
};
|
31
31
|
case gl.FLOAT_VEC4:
|
32
32
|
return function() {
|
33
|
-
return UniformDatatype.
|
33
|
+
return UniformDatatype.FLOAT_VEC4;
|
34
34
|
};
|
35
35
|
case gl.INT:
|
36
36
|
return function() {
|
@@ -38,15 +38,15 @@ define(['Core/defined', 'Core/DeveloperError', 'Core/FeatureDetection', 'Core/Ru
|
|
38
38
|
};
|
39
39
|
case gl.INT_VEC2:
|
40
40
|
return function() {
|
41
|
-
return UniformDatatype.
|
41
|
+
return UniformDatatype.INT_VEC2;
|
42
42
|
};
|
43
43
|
case gl.INT_VEC3:
|
44
44
|
return function() {
|
45
|
-
return UniformDatatype.
|
45
|
+
return UniformDatatype.INT_VEC3;
|
46
46
|
};
|
47
47
|
case gl.INT_VEC4:
|
48
48
|
return function() {
|
49
|
-
return UniformDatatype.
|
49
|
+
return UniformDatatype.INT_VEC4;
|
50
50
|
};
|
51
51
|
case gl.BOOL:
|
52
52
|
return function() {
|
@@ -54,27 +54,27 @@ define(['Core/defined', 'Core/DeveloperError', 'Core/FeatureDetection', 'Core/Ru
|
|
54
54
|
};
|
55
55
|
case gl.BOOL_VEC2:
|
56
56
|
return function() {
|
57
|
-
return UniformDatatype.
|
57
|
+
return UniformDatatype.BOOL_VEC2;
|
58
58
|
};
|
59
59
|
case gl.BOOL_VEC3:
|
60
60
|
return function() {
|
61
|
-
return UniformDatatype.
|
61
|
+
return UniformDatatype.BOOL_VEC3;
|
62
62
|
};
|
63
63
|
case gl.BOOL_VEC4:
|
64
64
|
return function() {
|
65
|
-
return UniformDatatype.
|
65
|
+
return UniformDatatype.BOOL_VEC4;
|
66
66
|
};
|
67
67
|
case gl.FLOAT_MAT2:
|
68
68
|
return function() {
|
69
|
-
return UniformDatatype.
|
69
|
+
return UniformDatatype.FLOAT_MAT2;
|
70
70
|
};
|
71
71
|
case gl.FLOAT_MAT3:
|
72
72
|
return function() {
|
73
|
-
return UniformDatatype.
|
73
|
+
return UniformDatatype.FLOAT_MAT3;
|
74
74
|
};
|
75
75
|
case gl.FLOAT_MAT4:
|
76
76
|
return function() {
|
77
|
-
return UniformDatatype.
|
77
|
+
return UniformDatatype.FLOAT_MAT4;
|
78
78
|
};
|
79
79
|
case gl.SAMPLER_2D:
|
80
80
|
return function() {
|
@@ -231,7 +231,7 @@ define(['Core/defined', 'Core/DeveloperError', 'Core/FeatureDetection', 'Core/Ru
|
|
231
231
|
*
|
232
232
|
* var mvp = sp.getAllUniforms().u_mvp;
|
233
233
|
* console.log(mvp.getName()); // 'u_mvp'
|
234
|
-
* console.log(mvp.getDatatype().name); // '
|
234
|
+
* console.log(mvp.getDatatype().name); // 'FLOAT_MAT4'
|
235
235
|
* mvp.value = Matrix4.IDENTITY;
|
236
236
|
*
|
237
237
|
* //////////////////////////////////////////////////////////////////////
|
@@ -319,7 +319,7 @@ define(['Core/defined', 'Core/DeveloperError', 'Core/FeatureDetection', 'Core/Ru
|
|
319
319
|
*
|
320
320
|
* @example
|
321
321
|
* // GLSL: uniform mat4 u_mvp;
|
322
|
-
* console.log(sp.getAllUniforms().u_mvp.getDatatype().name); // '
|
322
|
+
* console.log(sp.getAllUniforms().u_mvp.getDatatype().name); // 'FLOAT_MAT4'
|
323
323
|
*/
|
324
324
|
this.getDatatype = getUniformDatatype(_gl, activeUniform.type);
|
325
325
|
|
@@ -828,39 +828,26 @@ define(['Core/defined', 'Core/DeveloperError', 'Core/FeatureDetection', 'Core/Ru
|
|
828
828
|
var vsSourceVersioned = extractShaderVersion(vertexShaderSource);
|
829
829
|
var fsSourceVersioned = extractShaderVersion(fragmentShaderSource);
|
830
830
|
|
831
|
-
var vsSource =
|
832
|
-
|
831
|
+
var vsSource =
|
832
|
+
vsSourceVersioned.version +
|
833
|
+
getBuiltinsAndAutomaticUniforms(vsSourceVersioned.source) +
|
834
|
+
'\n#line 0\n' +
|
835
|
+
vsSourceVersioned.source;
|
836
|
+
var fsSource =
|
837
|
+
fsSourceVersioned.version +
|
838
|
+
getFragmentShaderPrecision() +
|
839
|
+
getBuiltinsAndAutomaticUniforms(fsSourceVersioned.source) +
|
840
|
+
'\n#line 0\n' +
|
841
|
+
fsSourceVersioned.source;
|
842
|
+
var log;
|
833
843
|
|
834
844
|
var vertexShader = gl.createShader(gl.VERTEX_SHADER);
|
835
845
|
gl.shaderSource(vertexShader, vsSource);
|
836
846
|
gl.compileShader(vertexShader);
|
837
|
-
var vsLog = gl.getShaderInfoLog(vertexShader);
|
838
|
-
|
839
|
-
if (logShaderCompilation && vsLog && vsLog.length) {
|
840
|
-
console.log('[GL] Vertex shader compile log: ' + vsLog);
|
841
|
-
}
|
842
|
-
|
843
|
-
if (!gl.getShaderParameter(vertexShader, gl.COMPILE_STATUS)) {
|
844
|
-
gl.deleteShader(vertexShader);
|
845
|
-
console.error('[GL] Vertex shader compile log: ' + vsLog);
|
846
|
-
throw new RuntimeError('Vertex shader failed to compile. Compile log: ' + vsLog);
|
847
|
-
}
|
848
847
|
|
849
848
|
var fragmentShader = gl.createShader(gl.FRAGMENT_SHADER);
|
850
849
|
gl.shaderSource(fragmentShader, fsSource);
|
851
850
|
gl.compileShader(fragmentShader);
|
852
|
-
var fsLog = gl.getShaderInfoLog(fragmentShader);
|
853
|
-
|
854
|
-
if (logShaderCompilation && fsLog && fsLog.length) {
|
855
|
-
console.log('[GL] Fragment shader compile log: ' + fsLog);
|
856
|
-
}
|
857
|
-
|
858
|
-
if (!gl.getShaderParameter(fragmentShader, gl.COMPILE_STATUS)) {
|
859
|
-
gl.deleteShader(vertexShader);
|
860
|
-
gl.deleteShader(fragmentShader);
|
861
|
-
console.error('[GL] Fragment shader compile log: ' + fsLog);
|
862
|
-
throw new RuntimeError('Fragment shader failed to compile. Compile log: ' + fsLog);
|
863
|
-
}
|
864
851
|
|
865
852
|
var program = gl.createProgram();
|
866
853
|
gl.attachShader(program, vertexShader);
|
@@ -878,16 +865,48 @@ define(['Core/defined', 'Core/DeveloperError', 'Core/FeatureDetection', 'Core/Ru
|
|
878
865
|
}
|
879
866
|
|
880
867
|
gl.linkProgram(program);
|
881
|
-
var linkLog = gl.getProgramInfoLog(program);
|
882
|
-
|
883
|
-
if (logShaderCompilation && linkLog && linkLog.length) {
|
884
|
-
console.log('[GL] Shader program link log: ' + linkLog);
|
885
|
-
}
|
886
868
|
|
887
869
|
if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {
|
870
|
+
// For performance, only check compile errors if there is a linker error.
|
871
|
+
if (!gl.getShaderParameter(fragmentShader, gl.COMPILE_STATUS)) {
|
872
|
+
log = gl.getShaderInfoLog(fragmentShader);
|
873
|
+
gl.deleteProgram(program);
|
874
|
+
console.error('[GL] Fragment shader compile log: ' + log);
|
875
|
+
throw new RuntimeError('Fragment shader failed to compile. Compile log: ' + log);
|
876
|
+
}
|
877
|
+
|
878
|
+
if (!gl.getShaderParameter(vertexShader, gl.COMPILE_STATUS)) {
|
879
|
+
log = gl.getShaderInfoLog(vertexShader);
|
880
|
+
gl.deleteProgram(program);
|
881
|
+
console.error('[GL] Vertex shader compile log: ' + log);
|
882
|
+
throw new RuntimeError('Vertex shader failed to compile. Compile log: ' + log);
|
883
|
+
}
|
884
|
+
|
885
|
+
log = gl.getProgramInfoLog(program);
|
888
886
|
gl.deleteProgram(program);
|
889
|
-
console.error('[GL] Shader program link log: ' +
|
890
|
-
throw new RuntimeError('Program failed to link. Link log: ' +
|
887
|
+
console.error('[GL] Shader program link log: ' + log);
|
888
|
+
throw new RuntimeError('Program failed to link. Link log: ' + log);
|
889
|
+
}
|
890
|
+
|
891
|
+
if (logShaderCompilation) {
|
892
|
+
log = gl.getShaderInfoLog(vertexShader);
|
893
|
+
if (defined(log) && (log.length > 0)) {
|
894
|
+
console.log('[GL] Vertex shader compile log: ' + log);
|
895
|
+
}
|
896
|
+
}
|
897
|
+
|
898
|
+
if (logShaderCompilation) {
|
899
|
+
log = gl.getShaderInfoLog(fragmentShader);
|
900
|
+
if (defined(log) && (log.length > 0)) {
|
901
|
+
console.log('[GL] Fragment shader compile log: ' + log);
|
902
|
+
}
|
903
|
+
}
|
904
|
+
|
905
|
+
if (logShaderCompilation) {
|
906
|
+
log = gl.getProgramInfoLog(program);
|
907
|
+
if (defined(log) && (log.length > 0)) {
|
908
|
+
console.log('[GL] Shader program link log: ' + log);
|
909
|
+
}
|
891
910
|
}
|
892
911
|
|
893
912
|
return program;
|
@@ -108,7 +108,7 @@ define(['Core/Cartesian2', 'Core/defaultValue', 'Core/defined', 'Core/destroyObj
|
|
108
108
|
|
109
109
|
//Firefox bug: texSubImage2D has overloads and can't resolve our enums, so we use + to explicitly convert to a number.
|
110
110
|
if (source.arrayBufferView) {
|
111
|
-
gl.texSubImage2D(target, 0, xOffset, yOffset, width, height,
|
111
|
+
gl.texSubImage2D(target, 0, xOffset, yOffset, width, height, this._pixelFormat, +this._pixelDatatype, source.arrayBufferView);
|
112
112
|
} else {
|
113
113
|
gl.texSubImage2D(target, 0, xOffset, yOffset, this._pixelFormat, this._pixelDatatype, source);
|
114
114
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*global define*/
|
2
|
-
define(
|
2
|
+
define(function() {
|
3
3
|
"use strict";
|
4
4
|
|
5
5
|
/**
|
@@ -9,22 +9,20 @@ define(['Core/Enumeration'], function(Enumeration) {
|
|
9
9
|
*/
|
10
10
|
var TextureMagnificationFilter = {
|
11
11
|
/**
|
12
|
-
*
|
12
|
+
* 0x2600. Nearest magnification texture filtering.
|
13
13
|
*
|
14
|
-
* @type {
|
14
|
+
* @type {Number}
|
15
15
|
* @constant
|
16
|
-
* @default 0x2600
|
17
16
|
*/
|
18
|
-
NEAREST :
|
17
|
+
NEAREST : 0x2600,
|
19
18
|
|
20
19
|
/**
|
21
|
-
*
|
20
|
+
* 0x2601. Linear (bilinear for 2D textures) magnification texture filtering.
|
22
21
|
*
|
23
|
-
* @type {
|
22
|
+
* @type {Number}
|
24
23
|
* @constant
|
25
|
-
* @default 0x2601
|
26
24
|
*/
|
27
|
-
LINEAR :
|
25
|
+
LINEAR : 0x2601,
|
28
26
|
|
29
27
|
/**
|
30
28
|
* DOC_TBA
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*global define*/
|
2
|
-
define(
|
2
|
+
define(function() {
|
3
3
|
"use strict";
|
4
4
|
|
5
5
|
/**
|
@@ -9,58 +9,52 @@ define(['Core/Enumeration'], function(Enumeration) {
|
|
9
9
|
*/
|
10
10
|
var TextureMinificationFilter = {
|
11
11
|
/**
|
12
|
-
*
|
12
|
+
* 0x2600. Nearest minification texture filtering.
|
13
13
|
*
|
14
|
-
* @type {
|
14
|
+
* @type {Number}
|
15
15
|
* @constant
|
16
|
-
* @default 0x2600
|
17
16
|
*/
|
18
|
-
NEAREST :
|
17
|
+
NEAREST : 0x2600,
|
19
18
|
|
20
19
|
/**
|
21
|
-
*
|
20
|
+
* 0x2601. Linear (bilinear for 2D textures) minification texture filtering.
|
22
21
|
*
|
23
|
-
* @type {
|
22
|
+
* @type {Number}
|
24
23
|
* @constant
|
25
|
-
* @default 0x2601
|
26
24
|
*/
|
27
|
-
LINEAR :
|
25
|
+
LINEAR : 0x2601,
|
28
26
|
|
29
27
|
/**
|
30
|
-
*
|
28
|
+
* 0x2700. Nearest-mipmap-nearest minification texture filtering.
|
31
29
|
*
|
32
|
-
* @type {
|
30
|
+
* @type {Number}
|
33
31
|
* @constant
|
34
|
-
* @default 0x2700
|
35
32
|
*/
|
36
|
-
NEAREST_MIPMAP_NEAREST :
|
33
|
+
NEAREST_MIPMAP_NEAREST : 0x2700,
|
37
34
|
|
38
35
|
/**
|
39
|
-
*
|
36
|
+
* 0x2701. Linear-mipmap-nearest minification texture filtering.
|
40
37
|
*
|
41
|
-
* @type {
|
38
|
+
* @type {Number}
|
42
39
|
* @constant
|
43
|
-
* @default 0x2701
|
44
40
|
*/
|
45
|
-
LINEAR_MIPMAP_NEAREST :
|
41
|
+
LINEAR_MIPMAP_NEAREST : 0x2701,
|
46
42
|
|
47
43
|
/**
|
48
|
-
*
|
44
|
+
* 0x2702. Nearest-mipmap-linear minification texture filtering.
|
49
45
|
*
|
50
|
-
* @type {
|
46
|
+
* @type {Number}
|
51
47
|
* @constant
|
52
|
-
* @default 0x2702
|
53
48
|
*/
|
54
|
-
NEAREST_MIPMAP_LINEAR :
|
49
|
+
NEAREST_MIPMAP_LINEAR : 0x2702,
|
55
50
|
|
56
51
|
/**
|
57
|
-
*
|
52
|
+
* 0x2703. Linear-mipmap-linear minification texture filtering.
|
58
53
|
*
|
59
|
-
* @type {
|
54
|
+
* @type {Number}
|
60
55
|
* @constant
|
61
|
-
* @default 0x2703
|
62
56
|
*/
|
63
|
-
LINEAR_MIPMAP_LINEAR :
|
57
|
+
LINEAR_MIPMAP_LINEAR : 0x2703,
|
64
58
|
|
65
59
|
/**
|
66
60
|
* DOC_TBA
|