Merge remote-tracking branch 'origin/v4.0.0' into v4.0.0

This commit is contained in:
Ben Richards 2024-11-21 12:33:32 +13:00
commit 7411a4b244
6 changed files with 8 additions and 6 deletions

View file

@ -82,7 +82,7 @@ var Lighting = {
{
if (enabled === null)
{
this.selfShadow.enabled = this.scene.game.config.selfShadow;
this.selfShadow.enabled = this.scene.sys.game.config.selfShadow;
}
else
{

View file

@ -46,7 +46,7 @@ var RopeWebGLRenderer = function (renderer, src, drawingContext, parentMatrix)
}
else
{
smoothPixelArt = src.scene.game.config.smoothPixelArt;
smoothPixelArt = src.scene.sys.game.config.smoothPixelArt;
}
renderOptions.smoothPixelArt = smoothPixelArt;

View file

@ -97,6 +97,7 @@ var MatterImage = new Class({
this.setTexture(texture, frame);
this.setSizeToFrame();
this.setOrigin();
this.initRenderNodes(this._defaultRenderNodesMap);
/**
* A reference to the Matter.World instance that this body belongs to.

View file

@ -103,6 +103,7 @@ var MatterSprite = new Class({
this.setTexture(texture, frame);
this.setSizeToFrame();
this.setOrigin();
this.initRenderNodes(this._defaultRenderNodesMap);
/**
* A reference to the Matter.World instance that this body belongs to.

View file

@ -256,7 +256,7 @@ var SubmitterQuad = new Class({
var selfShadowEnabled = selfShadow.enabled;
if (selfShadowEnabled === null)
{
selfShadowEnabled = gameObject.scene.game.config.selfShadow;
selfShadowEnabled = gameObject.scene.sys.game.config.selfShadow;
}
this._lightingOptions.normalGLTexture = normalMap;
@ -280,7 +280,7 @@ var SubmitterQuad = new Class({
}
else
{
smoothPixelArt = gameObject.scene.game.config.smoothPixelArt;
smoothPixelArt = gameObject.scene.sys.game.config.smoothPixelArt;
}
this._renderOptions.smoothPixelArt = smoothPixelArt;
}

View file

@ -391,7 +391,7 @@ var SubmitterTilemapGPULayer = new Class({
var selfShadow = gameObject.selfShadow.enabled;
if (selfShadow === null)
{
selfShadow = gameObject.scene.game.config.selfShadow;
selfShadow = gameObject.scene.sys.game.config.selfShadow;
}
if (selfShadow)
{
@ -406,7 +406,7 @@ var SubmitterTilemapGPULayer = new Class({
var smoothPixelArt = texture.smoothPixelArt;
if (smoothPixelArt === null)
{
smoothPixelArt = gameObject.scene.game.config.smoothPixelArt;
smoothPixelArt = gameObject.scene.sys.game.config.smoothPixelArt;
}
var smoothPixelArtAddition = programManager.getAddition('SmoothPixelArt');
if (smoothPixelArtAddition)