2
0
Эх сурвалжийг харах

add update and watch on BigTexture.set()

bstouls 9 жил өмнө
parent
commit
beeca438f1
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  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() {