11import {
22 GammaEncoding ,
33 LinearEncoding ,
4- RGBEEncoding ,
54 sRGBEncoding
65} from '../../../../build/three.module.js' ;
76
@@ -143,33 +142,12 @@ ColorSpaceNode.Nodes = ( function () {
143142 }`
144143 ) ;
145144
146- const RGBEToLinear = new FunctionNode ( /* glsl */ `
147- vec4 RGBEToLinear( in vec4 value ) {
148-
149- return vec4( value.rgb * exp2( value.a * 255.0 - 128.0 ), 1.0 );
150-
151- }`
152- ) ;
153-
154- const LinearToRGBE = new FunctionNode ( /* glsl */ `
155- vec4 LinearToRGBE( in vec4 value ) {
156-
157- float maxComponent = max( max( value.r, value.g ), value.b );
158- float fExp = clamp( ceil( log2( maxComponent ) ), -128.0, 127.0 );
159- return vec4( value.rgb / exp2( fExp ), ( fExp + 128.0 ) / 255.0 );
160-
161- }`
162- ) ;
163-
164-
165145 return {
166146 LinearToLinear : LinearToLinear ,
167147 GammaToLinear : GammaToLinear ,
168148 LinearToGamma : LinearToGamma ,
169149 sRGBToLinear : sRGBToLinear ,
170- LinearTosRGB : LinearTosRGB ,
171- RGBEToLinear : RGBEToLinear ,
172- LinearToRGBE : LinearToRGBE
150+ LinearTosRGB : LinearTosRGB
173151 } ;
174152
175153} ) ( ) ;
@@ -182,9 +160,6 @@ ColorSpaceNode.LINEAR_TO_GAMMA = 'LinearToGamma';
182160ColorSpaceNode . SRGB_TO_LINEAR = 'sRGBToLinear' ;
183161ColorSpaceNode . LINEAR_TO_SRGB = 'LinearTosRGB' ;
184162
185- ColorSpaceNode . RGBE_TO_LINEAR = 'RGBEToLinear' ;
186- ColorSpaceNode . LINEAR_TO_RGBE = 'LinearToRGBE' ;
187-
188163ColorSpaceNode . getEncodingComponents = function ( encoding ) {
189164
190165 switch ( encoding ) {
@@ -193,8 +168,6 @@ ColorSpaceNode.getEncodingComponents = function ( encoding ) {
193168 return [ 'Linear' ] ;
194169 case sRGBEncoding :
195170 return [ 'sRGB' ] ;
196- case RGBEEncoding :
197- return [ 'RGBE' ] ;
198171 case GammaEncoding :
199172 return [ 'Gamma' , new ExpressionNode ( 'float( GAMMA_FACTOR )' , 'f' ) ] ;
200173
0 commit comments