Skip to content

Commit

Permalink
Render translucent commands unsorted for pick pass
Browse files Browse the repository at this point in the history
  • Loading branch information
lilleyse committed Aug 15, 2018
1 parent ae0a4c1 commit 259c314
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion Source/Scene/Scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -2162,6 +2162,19 @@ define([
}
}

function executeTranslucentCommandsUnsorted(scene, executeFunction, passState, commands, invertClassification) {
var context = scene.context;

if (defined(invertClassification)) {
executeFunction(invertClassification.unclassifiedCommand, scene, context, passState);
}

var length = commands.length;
for (var i = 0; i < length; ++i) {
executeFunction(commands[i], scene, context, passState);
}
}

function getDebugGlobeDepth(scene, index) {
var globeDepth = scene._debugGlobeDepths[index];
if (!defined(globeDepth) && scene.context.depthTexture) {
Expand Down Expand Up @@ -2261,8 +2274,10 @@ define([
};
}
executeTranslucentCommands = scene._executeOITFunction;
} else {
} else if (passes.render) {
executeTranslucentCommands = executeTranslucentCommandsSorted;
} else {
executeTranslucentCommands = executeTranslucentCommandsUnsorted;
}

var clearGlobeDepth = environmentState.clearGlobeDepth;
Expand Down

0 comments on commit 259c314

Please sign in to comment.