From 4abb303fb014b5a892bdd79ec08853aa6704cc53 Mon Sep 17 00:00:00 2001 From: Don McCurdy Date: Thu, 24 Aug 2023 23:07:04 -0400 Subject: [PATCH] Add 'LinearToLinear' for backward-compatibility. --- .../shaders/ShaderChunk/colorspace_pars_fragment.glsl.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/renderers/shaders/ShaderChunk/colorspace_pars_fragment.glsl.js b/src/renderers/shaders/ShaderChunk/colorspace_pars_fragment.glsl.js index 53c28873685215..0eabd05a8c6d26 100644 --- a/src/renderers/shaders/ShaderChunk/colorspace_pars_fragment.glsl.js +++ b/src/renderers/shaders/ShaderChunk/colorspace_pars_fragment.glsl.js @@ -30,6 +30,11 @@ vec4 sRGBTransferOETF( in vec4 value ) { return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a ); } +// @deprecated, r156 +vec4 LinearToLinear( in vec4 value ) { + return value; +} + // @deprecated, r156 vec4 LinearTosRGB( in vec4 value ) { return sRGBTransferOETF( value );