Skip to content

Commit

Permalink
actually don't sort additivealpha
Browse files Browse the repository at this point in the history
  • Loading branch information
guycalledfrank committed May 31, 2015
1 parent 9699c72 commit 0225f6b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/scene/scene_forwardrenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,7 @@ pc.extend(pc, function () {
if (visible) {
btype = meshInstance.material.blendType;
if (btype === pc.BLEND_NORMAL
|| btype === pc.BLEND_PREMULTIPLIED
|| btype === pc.BLEND_ADDITIVEALPHA) {
|| btype === pc.BLEND_PREMULTIPLIED) {
// alpha sort
if (!meshPos) meshPos = meshInstance.aabb.center;
var tempx = meshPos.x - camPos.x;
Expand Down

0 comments on commit 0225f6b

Please sign in to comment.