浏览代码

World: Restore blend bit, fixes blending bugs in World

trethaller 7 年之前
父节点
当前提交
923521d5df
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      h3d/scene/World.hx

+ 2 - 1
h3d/scene/World.hx

@@ -62,7 +62,8 @@ class WorldMaterial {
 	}
 	public function updateBits() {
 		bits = (t.t == null ? 0 : t.t.id    << 8)
-			| ((normal == null ? 0 : 1)     << 5)
+			| ((normal == null ? 0 : 1)     << 6)
+			| (blend.getIndex()             << 5)
 			| ((killAlpha == null ? 0 : 1)  << 4)
 			| ((lights ? 1 : 0)             << 3)
 			| ((shadows ? 1 : 0)            << 2)