瀏覽代碼

write mat3, not mat4

David Rose 20 年之前
父節點
當前提交
3975c45b2b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pandatool/src/palettizer/textureReference.cxx

+ 1 - 1
pandatool/src/palettizer/textureReference.cxx

@@ -474,7 +474,7 @@ update_egg() {
 
 
   // Compose the new texture matrix with whatever matrix was already
   // Compose the new texture matrix with whatever matrix was already
   // there, if any.
   // there, if any.
-  _egg_tex->set_transform(_tex_mat * new_tex_mat);
+  _egg_tex->set_transform_2d(_tex_mat * new_tex_mat);
 
 
   // Finally, go back and actually adjust the UV's to match what we
   // Finally, go back and actually adjust the UV's to match what we
   // claimed they could be.
   // claimed they could be.