Explorar o código

WebGLRenderer: Remove RGBM7Encoding and RGBM16Encoding. (#23046)

Michael Herzog %!s(int64=3) %!d(string=hai) anos
pai
achega
3cce635f5d

+ 0 - 2
docs/api/en/constants/Textures.html

@@ -561,8 +561,6 @@
 		THREE.sRGBEncoding
 		THREE.GammaEncoding
 		THREE.RGBEEncoding
-		THREE.RGBM7Encoding
-		THREE.RGBM16Encoding
 		THREE.RGBDEncoding
 		THREE.BasicDepthPacking
 		THREE.RGBADepthPacking

+ 18 - 20
docs/api/ko/constants/Textures.html

@@ -31,8 +31,8 @@
 		[page:Constant CubeReflectionMapping]은 [page:CubeTexture CubeTexture]의 기본값입니다. <br /><br />
 
 		[page:Constant EquirectangularReflectionMapping] 및 [page:Constant EquirectangularRefractionMapping]은
-		등장방향형도법 환경 맵과 함께 사용됩니다. 맵으로도 불리며, 등장방향형도법 텍스쳐는 
-		수평 중심선을 따라 360도 시야를 나타내고 수직 축을 따라 180도 시야를 나타내며 
+		등장방향형도법 환경 맵과 함께 사용됩니다. 맵으로도 불리며, 등장방향형도법 텍스쳐는
+		수평 중심선을 따라 360도 시야를 나타내고 수직 축을 따라 180도 시야를 나타내며
 		이미지의 상단과 하단 가장자리는 맵핑된 구의 북극과 남극에 해당합니다.<br /><br />
 
 		[example:webgl_materials_envmaps materials / envmaps] 예제를 참고하세요.
@@ -63,17 +63,17 @@
 		</code>
 
 		<p>
-		텍스쳐의 [page:Texture.magFilter magFilter] 프로퍼티와 함께 사용되며, 
-		텍스처의 픽셀이 하나의 텍스처 요소(texel)보다 작거나 같은 영역에 매핑될 때 
+		텍스쳐의 [page:Texture.magFilter magFilter] 프로퍼티와 함께 사용되며,
+		텍스처의 픽셀이 하나의 텍스처 요소(texel)보다 작거나 같은 영역에 매핑될 때
 		사용할 텍스처 확대 함수를 정의합니다.
 		<br /><br />
 
 		[page:constant NearestFilter]는 특정 텍스쳐 좌표와 가장 가까운(맨해튼 거리 단위로) 텍스쳐 요소의 값을 리턴합니다.
 		<br /><br />
 
-		[page:constant LinearFilter]이 기본값이며 지정된 텍스쳐 좌표에 가장 가까운 네 가지 텍스쳐 요소의 가중 평균을 리턴하며, 
+		[page:constant LinearFilter]이 기본값이며 지정된 텍스쳐 좌표에 가장 가까운 네 가지 텍스쳐 요소의 가중 평균을 리턴하며,
 		[page:Texture.wrapS wrapS] 및 [page:Texture.wrapT wrapT]의 값과 정확한 맵핑에 따라 텍스처의 다른 부분에서 랩핑되거나 반복된 항목을 포함할 수 있습니다.
-		
+
 		</p>
 
 		<h2>축소 필터</h2>
@@ -87,28 +87,28 @@
 		</code>
 
 		<p>
-		텍스쳐의 [page:Texture.minFilter minFilter]	프로퍼티와 함께 사용하기 위해, 
-		텍스처의 픽셀이 하나의 텍스처 요소(texel)보다 큰 영역에 매핑될 때 
+		텍스쳐의 [page:Texture.minFilter minFilter]	프로퍼티와 함께 사용하기 위해,
+		텍스처의 픽셀이 하나의 텍스처 요소(texel)보다 큰 영역에 매핑될 때
 		사용할 텍스처 축소 함수를 정의합니다.<br /><br />
 
 		[page:constant NearestFilter] 및 [page:constant LinearFilter]와 함께,
 		아래 네 가지의 함수는 축소에 사용될 수 있습니다:<br /><br />
 
-		[page:constant NearestMipmapNearestFilter]는 
-		텍스처링되는 픽셀의 크기와 가장 근접한 mipmap을 선택하고 
+		[page:constant NearestMipmapNearestFilter]는
+		텍스처링되는 픽셀의 크기와 가장 근접한 mipmap을 선택하고
 		[page:constant NearestFilter] 기준(픽셀의 중심에 가장 가까운 texel)을 사용하여 텍스쳐 값을 생성합니다.
 		<br /><br />
 
-		[page:constant NearestMipmapLinearFilter]는 텍스처링되는 픽셀 크기와 가장 근접한 두 개의 mipmap을 선택하고 
+		[page:constant NearestMipmapLinearFilter]는 텍스처링되는 픽셀 크기와 가장 근접한 두 개의 mipmap을 선택하고
 		[page:constant NearstFilter] 기준을 사용하여 각 mipmap에서 텍스쳐 값을 생성합니다. 최종 텍스쳐 값은 이 두 값의 가중 평균입니다.
 		<br /><br />
 
-		[page:constant LinearMipmapNearestFilter]는 텍스쳐링되는 픽셀 크기와 가장 근접한 mipmap을 선택하고 
+		[page:constant LinearMipmapNearestFilter]는 텍스쳐링되는 픽셀 크기와 가장 근접한 mipmap을 선택하고
 		[page:constant LineFilter] 기준(픽셀의 중심에 가장 가까운 4개의 texel의 가중 평균)을 사용하여 텍스쳐 값을 생성합니다.
 		<br /><br />
 
-		[page:constant LinearMipmapLinearFilter]가 기본값이며 텍스처링되는 픽셀 크기와 가장 일치하는 두 개의 mipmap을 선택하고 
-		[page:constant LinearFilter] 기준을 사용하여 각 mipmap에서 텍스처 값을 생성합니다. 
+		[page:constant LinearMipmapLinearFilter]가 기본값이며 텍스처링되는 픽셀 크기와 가장 일치하는 두 개의 mipmap을 선택하고
+		[page:constant LinearFilter] 기준을 사용하여 각 mipmap에서 텍스처 값을 생성합니다.
 		최종 텍스처 값은 이 두 값의 가중 평균입니다.<br /><br />
 
 		[example:webgl_materials_texture_filters materials / texture / filters] 예제를 참고하세요.
@@ -188,7 +188,7 @@
 		<br /><br />
 
 		[page:constant LuminanceFormat]은 각 요소(element)를 단일 휘도 요소(component)로 읽어들입니다.
-		그 다음에 부동 소수점으로 변환되어 [0,1] 범위에 고정한 다음 
+		그 다음에 부동 소수점으로 변환되어 [0,1] 범위에 고정한 다음
 		휘도 값을 적색, 녹색 및 청색 채널에 배치하고 1.0을 알파 채널에 할당하여 RGBA 요소로 조립합니다.<br /><br />
 
 		[page:constant LuminanceAlphaFormat]은 각 요소(element)를 휘도/알파 소수로 읽어들입니다.
@@ -541,11 +541,11 @@
 
 		[page:Texture.format format], [page:Texture.internalFormat internalFormat],
 		및 [page:Texture.type type]과의 조합과 관련된 세부 내용에 관해서는
-		[link:https://developer.mozilla.org/en/docs/Web/API/WebGLRenderingContext/texImage2D WebGLRenderingContext.texImage2D], 
+		[link:https://developer.mozilla.org/en/docs/Web/API/WebGLRenderingContext/texImage2D WebGLRenderingContext.texImage2D],
 		[link:https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D WebGL2RenderingContext.texImage3D]를 참고하세요.<br /><br />
 
-		내부 포맷과 관련된 심화 정보에 대해서는 직접 
-		[link:https://www.khronos.org/registry/webgl/specs/latest/2.0/ WebGL2 Specification] 및 
+		내부 포맷과 관련된 심화 정보에 대해서는 직접
+		[link:https://www.khronos.org/registry/webgl/specs/latest/2.0/ WebGL2 Specification] 및
 		[link:https://www.khronos.org/registry/OpenGL/specs/es/3.0/es_spec_3.0.pdf OpenGL ES 3.0 Specification]를 확인해보세요.
 		</p>
 
@@ -556,8 +556,6 @@
 		THREE.GammaEncoding
 		THREE.RGBEEncoding
 		THREE.LogLuvEncoding
-		THREE.RGBM7Encoding
-		THREE.RGBM16Encoding
 		THREE.RGBDEncoding
 		THREE.BasicDepthPacking
 		THREE.RGBADepthPacking

+ 0 - 2
docs/api/zh/constants/Textures.html

@@ -551,8 +551,6 @@
 		THREE.GammaEncoding
 		THREE.RGBEEncoding
 		THREE.LogLuvEncoding
-		THREE.RGBM7Encoding
-		THREE.RGBM16Encoding
 		THREE.RGBDEncoding
 		THREE.BasicDepthPacking
 		THREE.RGBADepthPacking

+ 61 - 7
examples/jsm/loaders/RGBMLoader.js

@@ -1,14 +1,37 @@
 import {
 	DataTextureLoader,
-	UnsignedByteType,
 	RGBAFormat,
 	LinearFilter,
 	CubeTexture,
-	RGBM7Encoding
+	HalfFloatType,
+	DataUtils
 } from '../../../build/three.module.js';
 
 class RGBMLoader extends DataTextureLoader {
 
+	constructor( manager ) {
+
+		super( manager );
+
+		this.type = HalfFloatType;
+		this.maxRange = 7; // more information about this property at https://iwasbeingirony.blogspot.com/2010/06/difference-between-rgbm-and-rgbd.html
+
+	}
+
+	setDataType( value ) {
+
+		this.type = value;
+		return this;
+
+	}
+
+	setMaxRange( value ) {
+
+		this.maxRange = value;
+		return this;
+
+	}
+
 	loadCubemap( urls, onLoad, onProgress, onError ) {
 
 		const texture = new CubeTexture();
@@ -43,7 +66,7 @@ class RGBMLoader extends DataTextureLoader {
 
 		}
 
-		texture.encoding = RGBM7Encoding;
+		texture.type = this.type;
 		texture.format = RGBAFormat;
 		texture.minFilter = LinearFilter;
 		texture.generateMipmaps = false;
@@ -57,14 +80,45 @@ class RGBMLoader extends DataTextureLoader {
 		const img = UPNG.decode( buffer );
 		const rgba = UPNG.toRGBA8( img )[ 0 ];
 
+		const data = new Uint8Array( rgba );
+		const size = img.width * img.height * 4;
+
+		const output = ( this.type === HalfFloatType ) ? new Uint16Array( size ) : new Float32Array( size );
+
+		// decode RGBM
+
+		for ( let i = 0; i < data.length; i += 4 ) {
+
+			const r = data[ i + 0 ] / 255;
+			const g = data[ i + 1 ] / 255;
+			const b = data[ i + 2 ] / 255;
+			const a = data[ i + 3 ] / 255;
+
+			if ( this.type === HalfFloatType ) {
+
+				output[ i + 0 ] = DataUtils.toHalfFloat( Math.min( r * a * this.maxRange, 65504 ) );
+				output[ i + 1 ] = DataUtils.toHalfFloat( Math.min( g * a * this.maxRange, 65504 ) );
+				output[ i + 2 ] = DataUtils.toHalfFloat( Math.min( b * a * this.maxRange, 65504 ) );
+				output[ i + 3 ] = DataUtils.toHalfFloat( 1 );
+
+			} else {
+
+				output[ i + 0 ] = r * a * this.maxRange;
+				output[ i + 1 ] = g * a * this.maxRange;
+				output[ i + 2 ] = b * a * this.maxRange;
+				output[ i + 3 ] = 1;
+
+			}
+
+		}
+
 		return {
 			width: img.width,
 			height: img.height,
-			data: new Uint8Array( rgba ),
+			data: output,
 			format: RGBAFormat,
-			type: UnsignedByteType,
-			flipY: true,
-			encoding: RGBM7Encoding
+			type: this.type,
+			flipY: true
 		};
 
 	}

+ 0 - 31
examples/jsm/nodes/utils/ColorSpaceNode.js

@@ -2,8 +2,6 @@ import {
 	GammaEncoding,
 	LinearEncoding,
 	RGBEEncoding,
-	RGBM7Encoding,
-	RGBM16Encoding,
 	RGBDEncoding,
 	sRGBEncoding
 } from '../../../../build/three.module.js';
@@ -167,27 +165,6 @@ ColorSpaceNode.Nodes = ( function () {
 
 	// reference: http://iwasbeingirony.blogspot.ca/2010/06/difference-between-rgbm-and-rgbd.html
 
-	const RGBMToLinear = new FunctionNode( /* glsl */`
-		vec3 RGBMToLinear( in vec4 value, in float maxRange ) {
-
-			return vec4( value.xyz * value.w * maxRange, 1.0 );
-
-		}`
-	);
-
-	const LinearToRGBM = new FunctionNode( /* glsl */`
-		vec3 LinearToRGBM( in vec4 value, in float maxRange ) {
-
-			float maxRGB = max( value.x, max( value.g, value.b ) );
-			float M      = clamp( maxRGB / maxRange, 0.0, 1.0 );
-			M            = ceil( M * 255.0 ) / 255.0;
-			return vec4( value.rgb / ( M * maxRange ), M );
-
-		}`
-	);
-
-	// reference: http://iwasbeingirony.blogspot.ca/2010/06/difference-between-rgbm-and-rgbd.html
-
 	const RGBDToLinear = new FunctionNode( /* glsl */`
 		vec3 RGBDToLinear( in vec4 value, in float maxRange ) {
 
@@ -215,8 +192,6 @@ ColorSpaceNode.Nodes = ( function () {
 		LinearTosRGB: LinearTosRGB,
 		RGBEToLinear: RGBEToLinear,
 		LinearToRGBE: LinearToRGBE,
-		RGBMToLinear: RGBMToLinear,
-		LinearToRGBM: LinearToRGBM,
 		RGBDToLinear: RGBDToLinear,
 		LinearToRGBD: LinearToRGBD
 	};
@@ -234,8 +209,6 @@ ColorSpaceNode.LINEAR_TO_SRGB = 'LinearTosRGB';
 ColorSpaceNode.RGBE_TO_LINEAR = 'RGBEToLinear';
 ColorSpaceNode.LINEAR_TO_RGBE = 'LinearToRGBE';
 
-ColorSpaceNode.RGBM_TO_LINEAR = 'RGBMToLinear';
-ColorSpaceNode.LINEAR_TO_RGBM = 'LinearToRGBM';
 
 ColorSpaceNode.RGBD_TO_LINEAR = 'RGBDToLinear';
 ColorSpaceNode.LINEAR_TO_RGBD = 'LinearToRGBD';
@@ -250,10 +223,6 @@ ColorSpaceNode.getEncodingComponents = function ( encoding ) {
 			return [ 'sRGB' ];
 		case RGBEEncoding:
 			return [ 'RGBE' ];
-		case RGBM7Encoding:
-			return [ 'RGBM', new FloatNode( 7.0 ).setReadonly( true ) ];
-		case RGBM16Encoding:
-			return [ 'RGBM', new FloatNode( 16.0 ).setReadonly( true ) ];
 		case RGBDEncoding:
 			return [ 'RGBD', new FloatNode( 256.0 ).setReadonly( true ) ];
 		case GammaEncoding:

+ 1 - 8
examples/jsm/renderers/nodes/display/ColorSpaceNode.js

@@ -5,7 +5,7 @@ import { ShaderNode,
 	lessThanEqual } from '../ShaderNode.js';
 
 import { LinearEncoding,
-	sRGBEncoding/*, RGBEEncoding, RGBM7Encoding, RGBM16Encoding,
+	sRGBEncoding/*, RGBEEncoding,
 	RGBDEncoding, GammaEncoding*/ } from '../../../../../build/three.module.js';
 
 export const LinearToLinear = new ShaderNode( ( inputs ) => {
@@ -63,10 +63,6 @@ function getEncodingComponents( encoding ) {
 /*
 		case RGBEEncoding:
 			return [ 'RGBE' ];
-		case RGBM7Encoding:
-			return [ 'RGBM', new FloatNode( 7.0 ).setConst( true ) ];
-		case RGBM16Encoding:
-			return [ 'RGBM', new FloatNode( 16.0 ).setConst( true ) ];
 		case RGBDEncoding:
 			return [ 'RGBD', new FloatNode( 256.0 ).setConst( true ) ];
 		case GammaEncoding:
@@ -90,9 +86,6 @@ class ColorSpaceNode extends TempNode {
 	static RGBE_TO_LINEAR = 'RGBEToLinear';
 	static LINEAR_TO_RGBE = 'LinearToRGBE';
 
-	static RGBM_TO_LINEAR = 'RGBMToLinear';
-	static LINEAR_TO_RGBM = 'LinearToRGBM';
-
 	static RGBD_TO_LINEAR = 'RGBDToLinear';
 	static LINEAR_TO_RGBD = 'LinearToRGBD';
 */

+ 1 - 3
examples/webgl_loader_texture_rgbm.html

@@ -46,9 +46,7 @@
 
 				camera = new THREE.OrthographicCamera( - aspect, aspect, 1, - 1, 0, 1 );
 
-				new RGBMLoader().load( 'textures/memorial.png', function ( texture ) {
-
-					texture.encoding = THREE.RGBM16Encoding;
+				new RGBMLoader().setMaxRange( 16 ).load( 'textures/memorial.png', function ( texture ) {
 
 					const material = new THREE.MeshBasicMaterial( { map: texture } );
 

+ 1 - 3
examples/webgl_materials_envmaps_hdr.html

@@ -112,12 +112,10 @@
 
 
 				const rgbmUrls = [ 'px.png', 'nx.png', 'py.png', 'ny.png', 'pz.png', 'nz.png' ];
-				rgbmCubeMap = new RGBMLoader()
+				rgbmCubeMap = new RGBMLoader().setMaxRange( 16 )
 					.setPath( './textures/cube/pisaRGBM16/' )
 					.loadCubemap( rgbmUrls, function () {
 
-						rgbmCubeMap.encoding = THREE.RGBM16Encoding;
-
 						rgbmCubeRenderTarget = pmremGenerator.fromCubemap( rgbmCubeMap );
 
 					} );

+ 1 - 3
examples/webgl_materials_envmaps_hdr_nodes.html

@@ -121,12 +121,10 @@
 
 
 				const rgbmUrls = [ 'px.png', 'nx.png', 'py.png', 'ny.png', 'pz.png', 'nz.png' ];
-				rgbmCubeMap = new RGBMLoader()
+				rgbmCubeMap = new RGBMLoader().setMaxRange( 16 )
 					.setPath( './textures/cube/pisaRGBM16/' )
 					.loadCubemap( rgbmUrls, function () {
 
-						rgbmCubeMap.encoding = THREE.RGBM16Encoding;
-
 						rgbmCubeRenderTarget = pmremGenerator.fromCubemap( rgbmCubeMap );
 
 					} );

+ 0 - 2
src/constants.js

@@ -159,8 +159,6 @@ export const LinearEncoding = 3000;
 export const sRGBEncoding = 3001;
 export const GammaEncoding = 3007;
 export const RGBEEncoding = 3002;
-export const RGBM7Encoding = 3004;
-export const RGBM16Encoding = 3005;
 export const RGBDEncoding = 3006;
 export const BasicDepthPacking = 3200;
 export const RGBADepthPacking = 3201;

+ 0 - 12
src/extras/PMREMGenerator.js

@@ -10,8 +10,6 @@ import {
 	RGBDEncoding,
 	RGBEEncoding,
 	RGBAFormat,
-	RGBM16Encoding,
-	RGBM7Encoding,
 	UnsignedByteType,
 	sRGBEncoding,
 	HalfFloatType
@@ -51,8 +49,6 @@ const ENCODINGS = {
 	[ LinearEncoding ]: 0,
 	[ sRGBEncoding ]: 1,
 	[ RGBEEncoding ]: 2,
-	[ RGBM7Encoding ]: 3,
-	[ RGBM16Encoding ]: 4,
 	[ RGBDEncoding ]: 5,
 	[ GammaEncoding ]: 6
 };
@@ -920,14 +916,6 @@ function _getEncodings() {
 
 				return RGBEToLinear( value );
 
-			} else if ( inputEncoding == 3 ) {
-
-				return RGBMToLinear( value, 7.0 );
-
-			} else if ( inputEncoding == 4 ) {
-
-				return RGBMToLinear( value, 16.0 );
-
 			} else if ( inputEncoding == 5 ) {
 
 				return RGBDToLinear( value, 256.0 );

+ 1 - 13
src/renderers/shaders/ShaderChunk/encodings_pars_fragment.glsl.js

@@ -32,18 +32,6 @@ vec4 LinearToRGBE( in vec4 value ) {
 	// return vec4( value.brg, ( 3.0 + 128.0 ) / 256.0 );
 }
 
-// reference: http://iwasbeingirony.blogspot.ca/2010/06/difference-between-rgbm-and-rgbd.html
-vec4 RGBMToLinear( in vec4 value, in float maxRange ) {
-	return vec4( value.rgb * value.a * maxRange, 1.0 );
-}
-
-vec4 LinearToRGBM( in vec4 value, in float maxRange ) {
-	float maxRGB = max( value.r, max( value.g, value.b ) );
-	float M = clamp( maxRGB / maxRange, 0.0, 1.0 );
-	M = ceil( M * 255.0 ) / 255.0;
-	return vec4( value.rgb / ( M * maxRange ), M );
-}
-
 // reference: http://iwasbeingirony.blogspot.ca/2010/06/difference-between-rgbm-and-rgbd.html
 vec4 RGBDToLinear( in vec4 value, in float maxRange ) {
 	return vec4( value.rgb * ( ( maxRange / 255.0 ) / value.a ), 1.0 );
@@ -53,7 +41,7 @@ vec4 LinearToRGBD( in vec4 value, in float maxRange ) {
 	float maxRGB = max( value.r, max( value.g, value.b ) );
 	float D = max( maxRange / maxRGB, 1.0 );
 	// NOTE: The implementation with min causes the shader to not compile on
-	// a common Alcatel A502DL in Chrome 78/Android 8.1. Some research suggests 
+	// a common Alcatel A502DL in Chrome 78/Android 8.1. Some research suggests
 	// that the chipset is Mediatek MT6739 w/ IMG PowerVR GE8100 GPU.
 	// D = min( floor( D ) / 255.0, 1.0 );
 	D = clamp( floor( D ) / 255.0, 0.0, 1.0 );

+ 1 - 5
src/renderers/webgl/WebGLProgram.js

@@ -1,7 +1,7 @@
 import { WebGLUniforms } from './WebGLUniforms.js';
 import { WebGLShader } from './WebGLShader.js';
 import { ShaderChunk } from '../shaders/ShaderChunk.js';
-import { RGBFormat, NoToneMapping, AddOperation, MixOperation, MultiplyOperation, CubeRefractionMapping, CubeUVRefractionMapping, CubeUVReflectionMapping, CubeReflectionMapping, PCFSoftShadowMap, PCFShadowMap, VSMShadowMap, ACESFilmicToneMapping, CineonToneMapping, CustomToneMapping, ReinhardToneMapping, LinearToneMapping, GammaEncoding, RGBDEncoding, RGBM16Encoding, RGBM7Encoding, RGBEEncoding, sRGBEncoding, LinearEncoding, GLSL3 } from '../../constants.js';
+import { RGBFormat, NoToneMapping, AddOperation, MixOperation, MultiplyOperation, CubeRefractionMapping, CubeUVRefractionMapping, CubeUVReflectionMapping, CubeReflectionMapping, PCFSoftShadowMap, PCFShadowMap, VSMShadowMap, ACESFilmicToneMapping, CineonToneMapping, CustomToneMapping, ReinhardToneMapping, LinearToneMapping, GammaEncoding, RGBDEncoding, RGBEEncoding, sRGBEncoding, LinearEncoding, GLSL3 } from '../../constants.js';
 
 let programIdCount = 0;
 
@@ -29,10 +29,6 @@ function getEncodingComponents( encoding ) {
 			return [ 'sRGB', '( value )' ];
 		case RGBEEncoding:
 			return [ 'RGBE', '( value )' ];
-		case RGBM7Encoding:
-			return [ 'RGBM', '( value, 7.0 )' ];
-		case RGBM16Encoding:
-			return [ 'RGBM', '( value, 16.0 )' ];
 		case RGBDEncoding:
 			return [ 'RGBD', '( value, 256.0 )' ];
 		case GammaEncoding:

+ 0 - 2
test/unit/src/constants.tests.js

@@ -133,8 +133,6 @@ export default QUnit.module( 'Constants', () => {
 		assert.equal( Constants.sRGBEncoding, 3001, 'sRGBEncoding is equal to 3001' );
 		assert.equal( Constants.GammaEncoding, 3007, 'GammaEncoding is equal to 3007' );
 		assert.equal( Constants.RGBEEncoding, 3002, 'RGBEEncoding is equal to 3002' );
-		assert.equal( Constants.RGBM7Encoding, 3004, 'RGBM7Encoding is equal to 3004' );
-		assert.equal( Constants.RGBM16Encoding, 3005, 'RGBM16Encoding is equal to 3005' );
 		assert.equal( Constants.RGBDEncoding, 3006, 'RGBDEncoding is equal to 3006' );
 		assert.equal( Constants.BasicDepthPacking, 3200, 'BasicDepthPacking is equal to 3200' );
 		assert.equal( Constants.RGBADepthPacking, 3201, 'RGBADepthPacking is equal to 3201' );