Skip to content

Commit

Permalink
Use a different model.
Browse files Browse the repository at this point in the history
  • Loading branch information
bagnell committed Dec 18, 2018
1 parent 2fe8376 commit 50719fd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file added Apps/SampleData/models/Pawns/Pawns.glb
Binary file not shown.
Binary file removed Apps/SampleData/models/Spheres/MetalRoughSpheres.glb
Binary file not shown.
8 changes: 4 additions & 4 deletions Apps/Sandcastle/gallery/Image-Based Lighting.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
var viewer = new Cesium.Viewer('cesiumContainer');

var environmentMapURL = '../../SampleData/EnvironmentMap/kiara_6_afternoon_2k_ibl.ktx';
var modelURL = '../../SampleData/models/Spheres/MetalRoughSpheres.glb';
var modelURL = '../../SampleData/models/Pawns/Pawns.glb';

// This environment map was processed using Google's Filament project. To process your own:
// 1 - Download the Filament release (https://github.com/google/filament/releases).
Expand All @@ -58,7 +58,7 @@
var L22 = new Cesium.Cartesian3(-0.004953478914091, -0.000479681664876, 0.008508150106928);
var coefficients = [L00, L1_1, L10, L11, L2_2, L2_1, L20, L21, L22];

var height = 5.0;
var height = 0.0;
var hpr = new Cesium.HeadingPitchRoll(0.0, 0.0, 0.0);
var origin = Cesium.Cartesian3.fromDegrees(-123.0744619, 44.0503706, height);
var modelMatrix = Cesium.Transforms.headingPitchRollToFixedFrame(origin, hpr);
Expand Down Expand Up @@ -107,8 +107,8 @@

subscribeParameter('luminanceAtZenith');

Sandcastle.addToggleButton('Use procedural image', true, function(checked) {
if (checked) {
Sandcastle.addToggleButton('Use procedural image', false, function(checked) {
if (!checked) {
model.sphericalHarmonicCoefficients = coefficients;
model.specularEnvironmentMaps = environmentMapURL;
} else {
Expand Down

0 comments on commit 50719fd

Please sign in to comment.