From ffabf069e04f37c2ea5da2617687dde1d1dbc771 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Tue, 19 Nov 2019 13:00:37 +0000 Subject: [PATCH] Added mipmapFilter to game config --- src/core/Config.js | 5 +++++ src/core/typedefs/RenderConfig.js | 1 + 2 files changed, 6 insertions(+) diff --git a/src/core/Config.js b/src/core/Config.js index e39780a3e..efdea6df8 100644 --- a/src/core/Config.js +++ b/src/core/Config.js @@ -342,6 +342,11 @@ var Config = new Class({ */ this.antialiasGL = GetValue(renderConfig, 'antialiasGL', true); + /** + * @const {string} Phaser.Core.Config#mipmapFilter - Sets the `mipmapFilter` property when the WebGL renderer is created. + */ + this.mipmapFilter = GetValue(renderConfig, 'mipmapFilter', 'LINEAR'); + /** * @const {boolean} Phaser.Core.Config#desynchronized - When set to `true` it will create a desynchronized context for both 2D and WebGL. See https://developers.google.com/web/updates/2019/05/desynchronized for details. */ diff --git a/src/core/typedefs/RenderConfig.js b/src/core/typedefs/RenderConfig.js index df2fc1bfc..dcdf0f613 100644 --- a/src/core/typedefs/RenderConfig.js +++ b/src/core/typedefs/RenderConfig.js @@ -14,4 +14,5 @@ * @property {string} [powerPreference='default'] - "high-performance", "low-power" or "default". A hint to the browser on how much device power the game might use. * @property {integer} [batchSize=2000] - The default WebGL batch size. * @property {integer} [maxLights=10] - The maximum number of lights allowed to be visible within range of a single Camera in the LightManager. + * @property {string} [mipmapFilter='LINEAR'] - The mipmap magFilter to be used when creating WebGL textures. */