浏览代码

remove unused code.

Ben Houston 9 年之前
父节点
当前提交
55a5c38d1a
共有 1 个文件被更改,包括 0 次插入19 次删除
  1. 0 19
      examples/js/pmrem/PMREM_CubeUVPacker.js

+ 0 - 19
examples/js/pmrem/PMREM_CubeUVPacker.js

@@ -45,17 +45,6 @@ THREE.PMREM_CubeUVPacker = function( cubeTextureLods, numLods ) {
 		var mipOffsetY = 0;
 		var mipSize = size;
 
-    /*
-    var testColor = [];
-    testColor.push( new THREE.Vector3( 1, 0, 0 ) );
-    testColor.push( new THREE.Vector3( 0, 1, 0 ) );
-    testColor.push( new THREE.Vector3( 0, 0, 1 ) );
-    testColor.push( new THREE.Vector3( 1, 1, 0 ) );
-    testColor.push( new THREE.Vector3( 0, 1, 1 ) );
-    testColor.push( new THREE.Vector3( 1, 0, 1 ) );
-    testColor.push( new THREE.Vector3( 1, 1, 1 ) );
-    testColor.push( new THREE.Vector3( 0.5, 1, 0.5 ) );*/
-
 		for ( var j = 0; j < nMips; j ++ ) {
 
 			// Mip Maps
@@ -137,14 +126,6 @@ THREE.PMREM_CubeUVPacker.prototype = {
         uniform vec3 testColor;\
         uniform int faceIndex;\
         \
-        const float PI = 3.14159265358979;\
-        vec4 sampleCubeMap(float phi, float theta) {\
-          float sinTheta = sin(theta);\
-          float cosTheta = cos(theta);\
-          vec3 sampleDir = vec3(cos(phi) * sinTheta, cosTheta, sin(phi) * sinTheta);\
-          vec4 color = envMapTexelToLinear( textureCube(envMap, sampleDir) );\
-          return color * vec4(testColor, 1.0);\
-        }\
         void main() {\
           vec3 sampleDirection;\
           vec2 uv = vUv;\