mirror of
https://github.com/ayangweb/BongoCat.git
synced 2026-03-12 17:51:48 +08:00
perf: model adapts to screen resolution to improve clarity (#23)
This commit is contained in:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user