Browse Source

WebGPUBackend: Fix occlusion query result

sunag 1 year ago
parent
commit
d963e6b307
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/jsm/renderers/webgpu/WebGPUBackend.js

+ 1 - 1
examples/jsm/renderers/webgpu/WebGPUBackend.js

@@ -551,7 +551,7 @@ class WebGPUBackend extends Backend {
 
 
 			for ( let i = 0; i < currentOcclusionQueryObjects.length; i ++ ) {
 			for ( let i = 0; i < currentOcclusionQueryObjects.length; i ++ ) {
 
 
-				if ( results[ i ] !== 0 ) {
+				if ( results[ i ] !== 0n ) {
 
 
 					occluded.add( currentOcclusionQueryObjects[ i ] );
 					occluded.add( currentOcclusionQueryObjects[ i ] );