Skip to content

Commit

Permalink
Fix translucency when OIT is enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
bagnell committed Mar 10, 2015
1 parent f507210 commit 532aa53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Scene/Scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,7 @@ define([
var frustumCommandsList = scene._frustumCommandsList;
var numFrustums = frustumCommandsList.length;
for (i = 0; i < numFrustums; ++i) {
if (frustumCommandsList[i].translucentIndex > 0) {
if (frustumCommandsList[i].indices[Pass.TRANSLUCENT] > 0) {
renderTranslucentCommands = true;
break;
}
Expand Down

0 comments on commit 532aa53

Please sign in to comment.