Skip to content

Commit a6dbad1

Browse files
mvaligurskyMartin Valigursky
andauthored
[Fix] Disable skybox from picker (playcanvas#3466)
Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
1 parent a125a1a commit a6dbad1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/scene/scene.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,9 @@ class Scene extends EventHandler {
436436
meshInstance.cull = false;
437437
meshInstance._noDepthDrawGl1 = true;
438438

439+
// disable picker, the material has custom update shader and does not handle picker variant
440+
meshInstance.pick = false;
441+
439442
var model = new Model();
440443
model.graph = node;
441444
model.meshInstances = [meshInstance];

0 commit comments

Comments
 (0)