Skip to content

Commit b32e4f3

Browse files
committed
Fix test failure.
1 parent 248e3f5 commit b32e4f3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Source/Scene/Model.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ import Axis from './Axis.js';
5757
import BlendingState from './BlendingState.js';
5858
import ClippingPlaneCollection from './ClippingPlaneCollection.js';
5959
import ColorBlendMode from './ColorBlendMode.js';
60+
import DepthFunction from './DepthFunction.js';
6061
import DracoLoader from './DracoLoader.js';
6162
import getClipAndStyleCode from './getClipAndStyleCode.js';
6263
import getClippingFunction from './getClippingFunction.js';
@@ -3011,7 +3012,7 @@ import ShadowMode from './ShadowMode.js';
30113012
},
30123013
depthTest : {
30133014
enabled : true,
3014-
func: WebGLConstants.LEQUAL
3015+
func: DepthFunction.LESS_OR_EQUAL
30153016
},
30163017
depthMask : !blendingEnabled,
30173018
blending : {

Specs/Scene/ModelSpec.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import { DracoLoader } from '../../Source/Cesium.js';
3232
import { HeightReference } from '../../Source/Cesium.js';
3333
import { Model } from '../../Source/Cesium.js';
3434
import { ModelAnimationLoop } from '../../Source/Cesium.js';
35+
import { DepthFunction } from '../../Source/Cesium.js';
3536
import createScene from '../createScene.js';
3637
import pollToPromise from '../pollToPromise.js';
3738
import { when } from '../../Source/Cesium.js';
@@ -522,7 +523,8 @@ describe('Scene/Model', function() {
522523
enabled : true
523524
},
524525
depthTest : {
525-
enabled : true
526+
enabled : true,
527+
func : DepthFunction.LESS_OR_EQUAL
526528
},
527529
depthMask : true,
528530
blending : {

0 commit comments

Comments
 (0)