Explorar o código

add update and watch on BigTexture.set()

bstouls %!s(int64=9) %!d(string=hai) anos
pai
achega
beeca438f1
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      h3d/mat/BigTexture.hx

+ 2 - 0
h3d/mat/BigTexture.hx

@@ -137,6 +137,8 @@ class BigTexture {
 		var tsize = t.getSize();
 		upload(t, Math.round(et.du * size), Math.round(et.dv * size), tsize.width, tsize.height);
 		// todo : update q.texture & setup watch
+		et.q.texture = t;
+		t.watch(rebuild);
 	}
 
 	function rebuild() {