mirror of
https://github.com/motajs/template.git
synced 2026-11-21 04:04:30 +08:00
refactor: 贴图存储方式
This commit is contained in:
1 parent
3bcba48f48
commit
d36ea69066
12 files changed
+627
-585
No files matched your search
@@ -1261,7 +1261,7 @@ export class MapRenderer
|
||||
} else {
|
||||
// 多帧图块
|
||||
if (tex.cls === BlockCls.Autotile) {
|
||||
const gen = this.autotile.renderAnimatedWith(tex, 0b1111_1111);
|
||||
const gen = this.autotile.renderAnimated(tex, 0b1111_1111);
|
||||
return this.useDynamicBackground(gl, data, [...gen]);
|
||||
} else {
|
||||
const gen = this.tileAnimater.once(tex.texture, tex.frames);
|
||||
|
||||
Reference in new issue
Block a user