mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-28 04:31:27 +08:00
Merge branch '3.6' into 3.7-beta
This commit is contained in:
commit
0837774cfa
@ -84,8 +84,8 @@
|
|||||||
var ivanShader = loadIvanShader(context, shader);
|
var ivanShader = loadIvanShader(context, shader);
|
||||||
|
|
||||||
var assetManager = new spine.webgl.AssetManager(context);
|
var assetManager = new spine.webgl.AssetManager(context);
|
||||||
assetManager.loadTexture("assets/spineboy.png");
|
assetManager.loadTexture("../example/assets/spineboy.png");
|
||||||
assetManager.loadTexture("assets/spineboy-pma.png");
|
assetManager.loadTexture("../example/assets/spineboy-pma.png");
|
||||||
|
|
||||||
var camMatrix = new spine.webgl.Matrix4();
|
var camMatrix = new spine.webgl.Matrix4();
|
||||||
|
|
||||||
@ -95,8 +95,8 @@
|
|||||||
|
|
||||||
function load () {
|
function load () {
|
||||||
if (assetManager.isLoadingComplete()) {
|
if (assetManager.isLoadingComplete()) {
|
||||||
texture = assetManager.get("assets/spineboy.png");
|
texture = assetManager.get("../example/assets/spineboy.png");
|
||||||
texturePma = assetManager.get("assets/spineboy-pma.png");
|
texturePma = assetManager.get("../example/assets/spineboy-pma.png");
|
||||||
requestAnimationFrame(render);
|
requestAnimationFrame(render);
|
||||||
} else requestAnimationFrame(load);
|
} else requestAnimationFrame(load);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -45,7 +45,7 @@ function init() {
|
|||||||
swirlEffect.centerY = 200;
|
swirlEffect.centerY = 200;
|
||||||
swirlEffect.radius = 500;
|
swirlEffect.radius = 500;
|
||||||
|
|
||||||
assetManager = new spine.webgl.AssetManager(context, "assets/");
|
assetManager = new spine.webgl.AssetManager(context, "../example/assets/");
|
||||||
var textureLoader = function(img) { return new spine.webgl.GLTexture(gl, img); };
|
var textureLoader = function(img) { return new spine.webgl.GLTexture(gl, img); };
|
||||||
input = new spine.webgl.Input(canvas);
|
input = new spine.webgl.Input(canvas);
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,7 @@ mesh.setIndices(indices);
|
|||||||
var shader = spine.webgl.Shader.newTwoColoredTextured(context);
|
var shader = spine.webgl.Shader.newTwoColoredTextured(context);
|
||||||
|
|
||||||
var assetManager = new spine.webgl.AssetManager(context);
|
var assetManager = new spine.webgl.AssetManager(context);
|
||||||
assetManager.loadTexture("assets/spineboy.png");
|
assetManager.loadTexture("../example/assets/spineboy.png");
|
||||||
|
|
||||||
var camMatrix = new spine.webgl.Matrix4();
|
var camMatrix = new spine.webgl.Matrix4();
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ requestAnimationFrame(load);
|
|||||||
|
|
||||||
function load () {
|
function load () {
|
||||||
if (assetManager.isLoadingComplete()) {
|
if (assetManager.isLoadingComplete()) {
|
||||||
texture = assetManager.get("assets/spineboy.png");
|
texture = assetManager.get("../example/assets/spineboy.png");
|
||||||
requestAnimationFrame(render);
|
requestAnimationFrame(render);
|
||||||
} else requestAnimationFrame(load);
|
} else requestAnimationFrame(load);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user