|
4 | 4 | '../Core/Cartesian3',
|
5 | 5 | '../Core/Cartesian4',
|
6 | 6 | '../Core/Cartographic',
|
| 7 | + '../Core/ClippingPlaneCollection', |
7 | 8 | '../Core/clone',
|
8 | 9 | '../Core/Color',
|
9 | 10 | '../Core/combine',
|
@@ -81,6 +82,7 @@ define([
|
81 | 82 | Cartesian3,
|
82 | 83 | Cartesian4,
|
83 | 84 | Cartographic,
|
| 85 | + ClippingPlaneCollection, |
84 | 86 | clone,
|
85 | 87 | Color,
|
86 | 88 | combine,
|
@@ -1135,6 +1137,15 @@ define([
|
1135 | 1137 | * @param {ShadowMode} [options.shadows=ShadowMode.ENABLED] Determines whether the model casts or receives shadows from each light source.
|
1136 | 1138 | * @param {Boolean} [options.debugShowBoundingVolume=false] For debugging only. Draws the bounding sphere for each {@link DrawCommand} in the model.
|
1137 | 1139 | * @param {Boolean} [options.debugWireframe=false] For debugging only. Draws the model in wireframe.
|
| 1140 | + * @param {HeightReference} [options.heightReference] Determines how the model is drawn relative to terrain. |
| 1141 | + * @param {Scene} [options.scene] Must be passed in for models that use the height reference property. |
| 1142 | + * @param {DistanceDisplayCondition} [options.distanceDisplayCondition] The condition specifying at what distance from the camera that this model will be displayed. |
| 1143 | + * @param {Color} [options.color=Color.WHITE] A color that blends with the model's rendered color. |
| 1144 | + * @param {ColorBlendMode} [options.colorBlendMode=ColorBlendMode.HIGHLIGHT] Defines how the color blends with the model. |
| 1145 | + * @param {Number} [options.colorBlendAmount=0.5] Value used to determine the color strength when the <code>colorBlendMode</code> is <code>MIX</code>. A value of 0.0 results in the model's rendered color while a value of 1.0 results in a solid color, with any value in-between resulting in a mix of the two. |
| 1146 | + * @param {Color} [options.silhouetteColor=Color.RED] The silhouette color. If more than 256 models have silhouettes enabled, there is a small chance that overlapping models will have minor artifacts. |
| 1147 | + * @param {Number} [options.silhouetteSize=0.0] The size of the silhouette in pixels. |
| 1148 | + * @param {ClippingPlaneCollection} [options.clippingPlanes] The {@link ClippingPlaneCollection} used to selectively disable rendering the model. Clipping planes are not currently supported in Internet Explorer. |
1138 | 1149 | *
|
1139 | 1150 | * @returns {Model} The newly created model.
|
1140 | 1151 | *
|
@@ -2116,7 +2127,7 @@ define([
|
2116 | 2127 |
|
2117 | 2128 | var premultipliedAlpha = hasPremultipliedAlpha(model);
|
2118 | 2129 | var finalFS = modifyShaderForColor(fs, premultipliedAlpha);
|
2119 |
| - if (!FeatureDetection.isInternetExplorer()) { |
| 2130 | + if (ClippingPlaneCollection.isSupported()) { |
2120 | 2131 | finalFS = modifyShaderForClippingPlanes(finalFS);
|
2121 | 2132 | }
|
2122 | 2133 |
|
|
0 commit comments