Skip to content

Commit

Permalink
Merge branch 'master' of github.com:lightning-js/blits
Browse files Browse the repository at this point in the history
  • Loading branch information
michielvandergeest committed Oct 9, 2023
2 parents 2581bef + 681016e commit 4cf3fd3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
4 changes: 2 additions & 2 deletions src/components/Sprite.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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}`,
})
},
Expand Down
2 changes: 1 addition & 1 deletion src/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4cf3fd3

Please sign in to comment.