Skip to content

Commit

Permalink
Fix sunlight test
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrgags committed Jan 19, 2024
1 parent 136b411 commit 5102970
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/engine/Specs/Scene/Model/ModelSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4558,7 +4558,7 @@ describe(
});

describe("fog", function () {
const sunnyDate = JulianDate.fromIso8601("2024-01-11T15:00:00Z");
const sunnyDate = JulianDate.fromIso8601("2024-01-11T17:50:00Z");
const darkDate = JulianDate.fromIso8601("2024-01-11T00:00:00Z");

afterEach(function () {
Expand Down Expand Up @@ -4682,11 +4682,9 @@ describe(
expect(rgba).not.toEqual(originalColor);
});

// Render in the dark, it should be a different color and
// darker than in sun
// Render in the dark, it should be darker than the sunny color
renderOptions.time = darkDate;
expect(renderOptions).toRenderAndCall(function (rgba) {
expect(rgba).not.toEqual([0, 0, 0, 255]);
expect(rgba).not.toEqual(originalColor);
expect(rgba).not.toEqual(sunnyColor);

Expand Down

0 comments on commit 5102970

Please sign in to comment.