diff --git a/package-lock.json b/package-lock.json index 443c9bd4..ae8faabb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.3.9", "license": "Apache-2.0", "dependencies": { - "@lightningjs/renderer": "^0.3.3", + "@lightningjs/renderer": "^0.3.6", "@lightningjs/vite-plugin-import-chunk-url": "^0.3.0" }, "bin": { @@ -598,9 +598,9 @@ "license": "BSD-3-Clause" }, "node_modules/@lightningjs/renderer": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@lightningjs/renderer/-/renderer-0.3.3.tgz", - "integrity": "sha512-Wg3fFBUgN7fD5tuw45WOF2dkdCD+DN+6dYwjtyAhJnTJWf1u+Ctfr8RZfo/nkznfFVvABwRlBGFQyG0f//OfLA==", + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/@lightningjs/renderer/-/renderer-0.3.6.tgz", + "integrity": "sha512-cw+QrptWQ2Nj5QAc9vQGRu7jgjaiUXqxUuAcYiaAUM9sYJhpEpNzYkzaPMiQvv5Mo4hRRI1zgZdnmQ7qZgJq5A==", "dependencies": { "@lightningjs/threadx": "^0.3.3", "@protobufjs/eventemitter": "^1.1.0" diff --git a/package.json b/package.json index 413239d7..9a533b7d 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "tape": "^5.5.0" }, "dependencies": { - "@lightningjs/renderer": "^0.3.3", + "@lightningjs/renderer": "^0.3.6", "@lightningjs/vite-plugin-import-chunk-url": "^0.3.0" } } diff --git a/src/components/Sprite.js b/src/components/Sprite.js index b01f0af3..4405933d 100644 --- a/src/components/Sprite.js +++ b/src/components/Sprite.js @@ -36,7 +36,7 @@ export default () => : this.map[this.frame] if (this.spriteTexture && options) { - return this.___renderer.makeTexture('SubTexture', { + return this.___renderer.createTexture('SubTexture', { texture: this.spriteTexture, x: options.x, y: options.y, @@ -48,7 +48,7 @@ export default () => }, hooks: { ready() { - this.spriteTexture = this.___renderer.makeTexture('ImageTexture', { + this.spriteTexture = this.___renderer.createTexture('ImageTexture', { src: `${window.location.protocol}//${window.location.host}/${this.image}`, }) }, diff --git a/src/element.js b/src/element.js index 1d640525..39be86d4 100644 --- a/src/element.js +++ b/src/element.js @@ -123,7 +123,7 @@ const transformations = { } }, effects(props) { - props.shader = renderer.makeShader('DynamicShader', { + props.shader = renderer.createShader('DynamicShader', { effects: props.effects.map((eff) => { if (eff.props && eff.props.color) { eff.props.color = colors.normalize(eff.props.color)