perf: model adapts to screen resolution to improve clarity (#23)

This commit is contained in:
ayangweb
2025-03-30 11:07:27 +08:00
committed by GitHub
parent 594431e343
commit 9485625065

View File

@@ -22,7 +22,6 @@ interface Expression {
class ModelManager {
private app: Application | null = null
public currentModel: Live2DModel | null = null
public currentMotions = new Map<string, Motion[]>()
public currentExpressions = new Map<string, Expression>()
@@ -36,7 +35,8 @@ class ModelManager {
view,
resizeTo: window,
backgroundAlpha: 0,
antialias: true,
autoDensity: true,
resolution: devicePixelRatio,
})
}