Преглед на файлове

World: Restore blend bits, fixes blending bugs

trethaller преди 7 години
родител
ревизия
cc395775ca
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      h3d/scene/World.hx

+ 2 - 2
h3d/scene/World.hx

@@ -61,8 +61,8 @@ class WorldMaterial {
 		shaders = [];
 	}
 	public function updateBits() {
-		bits = (t.t == null ? 0 : t.t.id    << 8)
-			| ((normal == null ? 0 : 1)     << 6)
+		bits = (t.t == null ? 0 : t.t.id    << 9)
+			| ((normal == null ? 0 : 1)     << 8)
 			| (blend.getIndex()             << 5)
 			| ((killAlpha == null ? 0 : 1)  << 4)
 			| ((lights ? 1 : 0)             << 3)