refactoring
b16 - 2013-05-01

Breaking changes:

Removed the color, outline color, and outline width properties of polylines. Instead, use materials for polyline color and outline properties. Code that looked like:

var polyline = polylineCollection.add({ positions : positions, color : new Color(1.0, 1.0, 1.0, 1.0), outlineColor : new Color(1.0, 0.0, 0.0, 1.0), width : 1.0, outlineWidth : 3.0 });

should now look like:

var outlineMaterial = Material.fromType(context, Material.PolylineOutlineType); outlineMaterial.uniforms.color = new Color(1.0, 1.0, 1.0, 1.0); outlineMaterial.uniforms.outlineColor = new Color(1.0, 0.0, 0.0, 1.0); outlineMaterial.uniforms.outlinewidth = 2.0;

var polyline = polylineCollection.add({ positions : positions, width : 3.0, material : outlineMaterial });

CzmlCartographic has been removed and all cartographic values are converted to Cartesian internally during CZML processing. This improves performance and fixes interpolation of cartographic source data. The Cartographic representation can still be retrieved if needed.

Removed ComplexConicSensorVolume, which was not documented and did not work on most platforms. It will be brought back in a future release. This does not affect CZML, which uses a custom sensor to approximate a complex conic.

Replaced computeSunPosition with Simon1994PlanetaryPosition, which has functions to calculate the position of the sun and the moon more accurately.

Removed Context.createClearState. These properties are now part of ClearCommand.

RenderState objects returned from Context.createRenderState are now immutable.

Removed positionMC from czm_materialInput. It is no longer used by any materials.

Added wide polylines that work with and without ANGLE.

Polylines now use materials to describe their surface appearance. See the Fabric wiki page for more details on how to create materials.

Added new PolylineOutline, PolylineGlow, PolylineArrow, and Fade materials.

Added czm_pixelSizeInMeters automatic GLSL uniform.

Added AnimationViewModel.snapToTicks, which when set to true, causes the shuttle ring on the Animation widget to snap to the defined tick values, rather than interpolate between them.

Added Color.toRgba and Color.fromRgba to convert to/from numeric unsigned 32-bit RGBA values.

Added GridImageryProvider for custom rendering effects and debugging.

Added new Grid material.

Made EllipsoidPrimitive double-sided.

Improved rendering performance by minimizing WebGL state calls.

Fixed an error in Web Worker creation when loading Cesium.js from a different origin.

Fixed EllipsoidPrimitive picking and picking objects with materials that have transparent parts.

Fixed imagery smearing artifacts on mobile devices and other devices without high-precision fragment shaders.