From bdcbf221523ef83dd11ac66deb8ae3b407381be0 Mon Sep 17 00:00:00 2001 From: Martin Valigursky Date: Mon, 11 Nov 2024 16:52:25 +0000 Subject: [PATCH] lint --- src/framework/components/camera/component.js | 4 ++++ src/framework/lightmapper/lightmapper.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/framework/components/camera/component.js b/src/framework/components/camera/component.js index be1f9a6b034..c323dc244c3 100644 --- a/src/framework/components/camera/component.js +++ b/src/framework/components/camera/component.js @@ -272,6 +272,8 @@ class CameraComponent extends Component { /** * Gets the gamma correction used when rendering the scene. + * + * @type {number} */ get gammaCorrection() { return this.camera.shaderParams.gammaCorrection; @@ -297,6 +299,8 @@ class CameraComponent extends Component { /** * Gets the tonemapping transform applied to the rendered color buffer. + * + * @type {number} */ get toneMapping() { return this.camera.shaderParams.toneMapping; diff --git a/src/framework/lightmapper/lightmapper.js b/src/framework/lightmapper/lightmapper.js index d230ab860aa..4b3147b3d44 100644 --- a/src/framework/lightmapper/lightmapper.js +++ b/src/framework/lightmapper/lightmapper.js @@ -19,7 +19,7 @@ import { drawQuadWithShader } from '../../scene/graphics/quad-render-utils.js'; import { Texture } from '../../platform/graphics/texture.js'; import { BAKE_COLORDIR, - FOG_NONE, GAMMA_NONE, TONEMAP_LINEAR, + GAMMA_NONE, TONEMAP_LINEAR, LIGHTTYPE_DIRECTIONAL, LIGHTTYPE_OMNI, LIGHTTYPE_SPOT, PROJECTION_ORTHOGRAPHIC, PROJECTION_PERSPECTIVE, SHADERDEF_DIRLM, SHADERDEF_LM, SHADERDEF_LMAMBIENT,