mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
fixed chuck's blurryness by increasing the animation size * 4 before exporting and then scale it back down in js, activated renderer antialiasing
This commit is contained in:
parent
24430049d9
commit
b65fbd9825
254 changed files with 8 additions and 4 deletions
|
|
@ -80,8 +80,8 @@ function (Parent, Settings, Nc, Exception) {
|
|||
Nc.trigger("view/createAnimatedMesh", texturePaths, callback, {
|
||||
visible: false,
|
||||
pivot: {
|
||||
x: 35/2,
|
||||
y: 40
|
||||
x: 35/2 * 4,
|
||||
y: 40 * 4
|
||||
},
|
||||
width: 35,
|
||||
height: 40
|
||||
|
|
|
|||
|
|
@ -31,11 +31,15 @@ function (Parent, DomController, PIXI, Settings, Nc) {
|
|||
|
||||
PixiView.prototype.init = function () {
|
||||
|
||||
var transparent = false;
|
||||
var antialias = true;
|
||||
var canvas = null; // lets pixi create one
|
||||
|
||||
if(Settings.USE_WEBGL) {
|
||||
this.renderer = new PIXI.WebGLRenderer(Settings.STAGE_WIDTH, Settings.STAGE_HEIGHT);
|
||||
this.renderer = new PIXI.WebGLRenderer(Settings.STAGE_WIDTH, Settings.STAGE_HEIGHT, canvas, transparent, antialias);
|
||||
console.log('WebGLRenderer')
|
||||
} else {
|
||||
this.renderer = new PIXI.CanvasRenderer(Settings.STAGE_WIDTH, Settings.STAGE_HEIGHT);
|
||||
this.renderer = new PIXI.CanvasRenderer(Settings.STAGE_WIDTH, Settings.STAGE_HEIGHT, canvas, transparent, antialias);
|
||||
console.log('CanvasRenderer - not using WebGL!')
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue