Skip to content

Commit

Permalink
Merge pull request #6681 from AnalyticalGraphicsInc/more-orientations
Browse files Browse the repository at this point in the history
Missed a constructor in #6632.
  • Loading branch information
lilleyse authored Jun 13, 2018
2 parents d321899 + beab213 commit c3f5a51
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/Scene/ClassificationModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ define([
///////////////////////////////////////////////////////////////////////////

/**
* A 3D model for classifying other 3D assets based on glTF, the runtime asset format for WebGL, OpenGL ES, and OpenGL.
* A 3D model for classifying other 3D assets based on glTF, the runtime 3D asset format.
* This is a special case when a model of a 3D tileset becomes a classifier when setting {@link Cesium3DTileset#classificationType}.
*
* @alias ClassificationModel
Expand Down
3 changes: 3 additions & 0 deletions Source/Scene/Instanced3DModel3DTileContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ define([
'../Core/Transforms',
'../Core/TranslationRotationScale',
'../Renderer/Pass',
'./Axis',
'./Cesium3DTileBatchTable',
'./Cesium3DTileFeature',
'./Cesium3DTileFeatureTable',
Expand Down Expand Up @@ -48,6 +49,7 @@ define([
Transforms,
TranslationRotationScale,
Pass,
Axis,
Cesium3DTileBatchTable,
Cesium3DTileFeature,
Cesium3DTileFeatureTable,
Expand Down Expand Up @@ -281,6 +283,7 @@ define([
basePath : undefined,
incrementallyLoadTextures : false,
upAxis : content._tileset._gltfUpAxis,
forwardAxis : Axis.X,
opaquePass : Pass.CESIUM_3D_TILE, // Draw opaque portions during the 3D Tiles pass
pickIdLoaded : getPickIdCallback(content)
};
Expand Down
2 changes: 2 additions & 0 deletions Source/Scene/ModelInstanceCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ define([
this._asynchronous = options.asynchronous;
this._incrementallyLoadTextures = options.incrementallyLoadTextures;
this._upAxis = options.upAxis; // Undocumented option
this._forwardAxis = options.forwardAxis; // Undocumented option

this.shadows = defaultValue(options.shadows, ShadowMode.ENABLED);
this._shadows = this.shadows;
Expand Down Expand Up @@ -569,6 +570,7 @@ define([
allowPicking : allowPicking,
incrementallyLoadTextures : collection._incrementallyLoadTextures,
upAxis : collection._upAxis,
forwardAxis : collection._forwardAxis,
precreatedAttributes : undefined,
vertexShaderLoaded : undefined,
fragmentShaderLoaded : undefined,
Expand Down
5 changes: 3 additions & 2 deletions Specs/Scene/ModelSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2273,7 +2273,6 @@ defineSuite([

function checkVertexColors(model) {
model.zoomTo();
scene.camera.rotateRight(CesiumMath.PI_OVER_TWO);
scene.camera.moveUp(0.1);
// Red
scene.camera.moveLeft(0.5);
Expand Down Expand Up @@ -2318,7 +2317,9 @@ defineSuite([
});

it('loads a glTF 2.0 with vertex colors', function() {
return loadModel(vertexColorTestUrl).then(function(m) {
return loadModel(vertexColorTestUrl, {
forwardAxis : Axis.X
}).then(function(m) {
m.show = true;
checkVertexColors(m);
primitives.remove(m);
Expand Down

0 comments on commit c3f5a51

Please sign in to comment.