mirror of
https://github.com/motajs/template.git
synced 2026-10-17 03:10:17 +08:00
style(04-09): collapse autotile.render call to satisfy prettier
This commit is contained in:
parent
88a21bf740
commit
523ea6b333
@ -1249,10 +1249,7 @@ export class MapRenderer
|
||||
if (tex.frames === 1) {
|
||||
// 对于一帧图块,只需要传递一个纹理
|
||||
if (tex.tileType === TileType.Autotile) {
|
||||
const renderable = this.autotile.render(
|
||||
tex,
|
||||
0b1111_1111
|
||||
)!;
|
||||
const renderable = this.autotile.render(tex, 0b1111_1111)!;
|
||||
return this.useStaticBackground(gl, data, renderable);
|
||||
} else {
|
||||
return this.useStaticBackground(gl, data, tex.texture.render());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user