Skip to content

Commit

Permalink
Add TODO list in spec - temp
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Dec 12, 2016
1 parent 95d024e commit e89915d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Specs/Scene/ModelSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1934,6 +1934,32 @@ defineSuite([
});
});

it('renders with a silhouette', function() {
return loadModel(boxUrl).then(function(model) {
model.show = true;
model.zoomTo();
model.silhouetteColor = Color.GREEN;
model.silhouetteSize = 1.0;

var color = scene.renderForSpecs();

// Make the silhouette size big-ish
// Make the silhouette size = 0. Expect no commands to render
// Expect no commands when silhouette alpha is 0
// How to test - doesn't work when there is no normal attribute
// When color alpha is 0 and sihoutte size is 0, expect no commands
// When color alpha is 0 and silhouette exists, should render just the silhouette
// Renders two models at the same time ... how to test this? Maybe check the alpha blending...
// Opaque vs. translucent silhouette
// Works with and without OIT
// Works in 2d... test this for model coloring too....
// Check Model.silhouetteSupported
// Change silhouette color
// Change silhouette size
// Uses translucent silhouettes when model has translucent commands or is translucent
});
});

describe('height referenced model', function() {
function createMockGlobe() {
var globe = {
Expand Down

0 comments on commit e89915d

Please sign in to comment.