File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const RenderFormat = {
3030
3131/** @enum {string} */
3232const DebugType = {
33- NONE : '' ,
33+ NONE : 'none ' ,
3434 SCENE : 'scene' ,
3535 SSAO : 'ssao' ,
3636 BLOOM : 'bloom' ,
@@ -367,6 +367,10 @@ class CameraFrame extends Script {
367367 this . on ( 'destroy' , ( ) => {
368368 this . engineCameraFrame . destroy ( ) ;
369369 } ) ;
370+
371+ this . on ( 'state' , ( enabled ) => {
372+ this . engineCameraFrame . enabled = enabled ;
373+ } ) ;
370374 }
371375
372376 postUpdate ( dt ) {
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { Debug } from '../../core/debug.js';
22import { Color } from '../../core/math/color.js' ;
33import { math } from '../../core/math/math.js' ;
44import { PIXELFORMAT_111110F , PIXELFORMAT_RGBA16F , PIXELFORMAT_RGBA32F } from '../../platform/graphics/constants.js' ;
5+ import { GAMMA_SRGB } from '../../scene/constants.js' ;
56import { SSAOTYPE_NONE } from './constants.js' ;
67import { CameraFrameOptions , RenderPassCameraFrame } from './render-pass-camera-frame.js' ;
78
@@ -330,6 +331,9 @@ class CameraFrame {
330331 cameraComponent . rendering = null ;
331332
332333 cameraComponent . jitter = 0 ;
334+
335+ // no longer HDR rendering
336+ cameraComponent . gammaCorrection = GAMMA_SRGB ;
333337 }
334338 }
335339
You can’t perform that action at this time.
0 commit comments