提交 58ebca83 编写于 作者: M Mr.doob

Updated builds.

上级 24f3a712
...@@ -17708,8 +17708,6 @@ THREE.Loader.prototype = { ...@@ -17708,8 +17708,6 @@ THREE.Loader.prototype = {
break; break;
case 'depthTest': case 'depthTest':
case 'depthWrite': case 'depthWrite':
case 'stencilTest':
case 'stencilWrite':
case 'colorWrite': case 'colorWrite':
case 'opacity': case 'opacity':
case 'reflectivity': case 'reflectivity':
...@@ -18828,8 +18826,6 @@ THREE.MaterialLoader.prototype = { ...@@ -18828,8 +18826,6 @@ THREE.MaterialLoader.prototype = {
if ( json.alphaTest !== undefined ) material.alphaTest = json.alphaTest; if ( json.alphaTest !== undefined ) material.alphaTest = json.alphaTest;
if ( json.depthTest !== undefined ) material.depthTest = json.depthTest; if ( json.depthTest !== undefined ) material.depthTest = json.depthTest;
if ( json.depthWrite !== undefined ) material.depthWrite = json.depthWrite; if ( json.depthWrite !== undefined ) material.depthWrite = json.depthWrite;
if ( json.stencilTest !== undefined ) material.stencilTest = json.stencilTest;
if ( json.stencilWrite !== undefined ) material.stencilWrite = json.stencilWrite;
if ( json.colorWrite !== undefined ) material.colorWrite = json.colorWrite; if ( json.colorWrite !== undefined ) material.colorWrite = json.colorWrite;
if ( json.wireframe !== undefined ) material.wireframe = json.wireframe; if ( json.wireframe !== undefined ) material.wireframe = json.wireframe;
if ( json.wireframeLinewidth !== undefined ) material.wireframeLinewidth = json.wireframeLinewidth; if ( json.wireframeLinewidth !== undefined ) material.wireframeLinewidth = json.wireframeLinewidth;
...@@ -18877,7 +18873,7 @@ THREE.MaterialLoader.prototype = { ...@@ -18877,7 +18873,7 @@ THREE.MaterialLoader.prototype = {
if ( json.metalnessMap !== undefined ) material.metalnessMap = this.getTexture( json.metalnessMap ); if ( json.metalnessMap !== undefined ) material.metalnessMap = this.getTexture( json.metalnessMap );
if ( json.emissiveMap !== undefined ) material.emissiveMap = this.getTexture( json.emissiveMap ); if ( json.emissiveMap !== undefined ) material.emissiveMap = this.getTexture( json.emissiveMap );
if ( json.emissiveMapIntensity !== undefined ) material.emissiveMapIntensity = json.emissiveMapIntensity; if ( json.emissiveIntensity !== undefined ) material.emissiveIntensity = json.emissiveIntensity;
if ( json.specularMap !== undefined ) material.specularMap = this.getTexture( json.specularMap ); if ( json.specularMap !== undefined ) material.specularMap = this.getTexture( json.specularMap );
...@@ -19932,9 +19928,6 @@ THREE.Material = function () { ...@@ -19932,9 +19928,6 @@ THREE.Material = function () {
this.depthTest = true; this.depthTest = true;
this.depthWrite = true; this.depthWrite = true;
this.stencilTest = false;
this.stencilWrite = false;
this.colorWrite = true; this.colorWrite = true;
this.precision = null; // override the renderer's default precision for this material this.precision = null; // override the renderer's default precision for this material
...@@ -20162,9 +20155,6 @@ THREE.Material.prototype = { ...@@ -20162,9 +20155,6 @@ THREE.Material.prototype = {
this.depthTest = source.depthTest; this.depthTest = source.depthTest;
this.depthWrite = source.depthWrite; this.depthWrite = source.depthWrite;
this.stencilTest = source.stencilTest;
this.stencilWrite = source.stencilWrite;
this.colorWrite = source.colorWrite; this.colorWrite = source.colorWrite;
this.precision = source.precision; this.precision = source.precision;
...@@ -20465,7 +20455,6 @@ THREE.MeshBasicMaterial.prototype.copy = function ( source ) { ...@@ -20465,7 +20455,6 @@ THREE.MeshBasicMaterial.prototype.copy = function ( source ) {
* *
* parameters = { * parameters = {
* color: <hex>, * color: <hex>,
* emissive: <hex>,
* opacity: <float>, * opacity: <float>,
* *
* map: new THREE.Texture( <Image> ), * map: new THREE.Texture( <Image> ),
...@@ -20476,8 +20465,9 @@ THREE.MeshBasicMaterial.prototype.copy = function ( source ) { ...@@ -20476,8 +20465,9 @@ THREE.MeshBasicMaterial.prototype.copy = function ( source ) {
* aoMap: new THREE.Texture( <Image> ), * aoMap: new THREE.Texture( <Image> ),
* aoMapIntensity: <float> * aoMapIntensity: <float>
* *
* emissive: <hex>,
* emissiveIntensity: <float>
* emissiveMap: new THREE.Texture( <Image> ), * emissiveMap: new THREE.Texture( <Image> ),
* emissiveMapIntensity: <float>
* *
* specularMap: new THREE.Texture( <Image> ), * specularMap: new THREE.Texture( <Image> ),
* *
...@@ -20512,7 +20502,6 @@ THREE.MeshLambertMaterial = function ( parameters ) { ...@@ -20512,7 +20502,6 @@ THREE.MeshLambertMaterial = function ( parameters ) {
this.type = 'MeshLambertMaterial'; this.type = 'MeshLambertMaterial';
this.color = new THREE.Color( 0xffffff ); // diffuse this.color = new THREE.Color( 0xffffff ); // diffuse
this.emissive = new THREE.Color( 0x000000 );
this.map = null; this.map = null;
...@@ -20522,8 +20511,9 @@ THREE.MeshLambertMaterial = function ( parameters ) { ...@@ -20522,8 +20511,9 @@ THREE.MeshLambertMaterial = function ( parameters ) {
this.aoMap = null; this.aoMap = null;
this.aoMapIntensity = 1.0; this.aoMapIntensity = 1.0;
this.emissive = new THREE.Color( 0x000000 );
this.emissiveIntensity = 1.0;
this.emissiveMap = null; this.emissiveMap = null;
this.emissiveMapIntensity = 1.0;
this.specularMap = null; this.specularMap = null;
...@@ -20559,7 +20549,6 @@ THREE.MeshLambertMaterial.prototype.copy = function ( source ) { ...@@ -20559,7 +20549,6 @@ THREE.MeshLambertMaterial.prototype.copy = function ( source ) {
THREE.Material.prototype.copy.call( this, source ); THREE.Material.prototype.copy.call( this, source );
this.color.copy( source.color ); this.color.copy( source.color );
this.emissive.copy( source.emissive );
this.map = source.map; this.map = source.map;
...@@ -20569,8 +20558,9 @@ THREE.MeshLambertMaterial.prototype.copy = function ( source ) { ...@@ -20569,8 +20558,9 @@ THREE.MeshLambertMaterial.prototype.copy = function ( source ) {
this.aoMap = source.aoMap; this.aoMap = source.aoMap;
this.aoMapIntensity = source.aoMapIntensity; this.aoMapIntensity = source.aoMapIntensity;
this.emissive.copy( source.emissive );
this.emissiveMap = source.emissiveMap; this.emissiveMap = source.emissiveMap;
this.emissiveMapIntensity = source.emissiveMapIntensity; this.emissiveIntensity = source.emissiveIntensity;
this.specularMap = source.specularMap; this.specularMap = source.specularMap;
...@@ -20606,7 +20596,6 @@ THREE.MeshLambertMaterial.prototype.copy = function ( source ) { ...@@ -20606,7 +20596,6 @@ THREE.MeshLambertMaterial.prototype.copy = function ( source ) {
* *
* parameters = { * parameters = {
* color: <hex>, * color: <hex>,
* emissive: <hex>,
* specular: <hex>, * specular: <hex>,
* shininess: <float>, * shininess: <float>,
* opacity: <float>, * opacity: <float>,
...@@ -20619,8 +20608,9 @@ THREE.MeshLambertMaterial.prototype.copy = function ( source ) { ...@@ -20619,8 +20608,9 @@ THREE.MeshLambertMaterial.prototype.copy = function ( source ) {
* aoMap: new THREE.Texture( <Image> ), * aoMap: new THREE.Texture( <Image> ),
* aoMapIntensity: <float> * aoMapIntensity: <float>
* *
* emissive: <hex>,
* emissiveIntensity: <float>
* emissiveMap: new THREE.Texture( <Image> ), * emissiveMap: new THREE.Texture( <Image> ),
* emissiveMapIntensity: <float>
* *
* bumpMap: new THREE.Texture( <Image> ), * bumpMap: new THREE.Texture( <Image> ),
* bumpScale: <float>, * bumpScale: <float>,
...@@ -20666,7 +20656,6 @@ THREE.MeshPhongMaterial = function ( parameters ) { ...@@ -20666,7 +20656,6 @@ THREE.MeshPhongMaterial = function ( parameters ) {
this.type = 'MeshPhongMaterial'; this.type = 'MeshPhongMaterial';
this.color = new THREE.Color( 0xffffff ); // diffuse this.color = new THREE.Color( 0xffffff ); // diffuse
this.emissive = new THREE.Color( 0x000000 );
this.specular = new THREE.Color( 0x111111 ); this.specular = new THREE.Color( 0x111111 );
this.shininess = 30; this.shininess = 30;
...@@ -20678,8 +20667,9 @@ THREE.MeshPhongMaterial = function ( parameters ) { ...@@ -20678,8 +20667,9 @@ THREE.MeshPhongMaterial = function ( parameters ) {
this.aoMap = null; this.aoMap = null;
this.aoMapIntensity = 1.0; this.aoMapIntensity = 1.0;
this.emissive = new THREE.Color( 0x000000 );
this.emissiveIntensity = 1.0;
this.emissiveMap = null; this.emissiveMap = null;
this.emissiveMapIntensity = 1.0;
this.bumpMap = null; this.bumpMap = null;
this.bumpScale = 1; this.bumpScale = 1;
...@@ -20727,7 +20717,6 @@ THREE.MeshPhongMaterial.prototype.copy = function ( source ) { ...@@ -20727,7 +20717,6 @@ THREE.MeshPhongMaterial.prototype.copy = function ( source ) {
THREE.Material.prototype.copy.call( this, source ); THREE.Material.prototype.copy.call( this, source );
this.color.copy( source.color ); this.color.copy( source.color );
this.emissive.copy( source.emissive );
this.specular.copy( source.specular ); this.specular.copy( source.specular );
this.shininess = source.shininess; this.shininess = source.shininess;
...@@ -20739,8 +20728,9 @@ THREE.MeshPhongMaterial.prototype.copy = function ( source ) { ...@@ -20739,8 +20728,9 @@ THREE.MeshPhongMaterial.prototype.copy = function ( source ) {
this.aoMap = source.aoMap; this.aoMap = source.aoMap;
this.aoMapIntensity = source.aoMapIntensity; this.aoMapIntensity = source.aoMapIntensity;
this.emissive.copy( source.emissive );
this.emissiveMap = source.emissiveMap; this.emissiveMap = source.emissiveMap;
this.emissiveMapIntensity = source.emissiveMapIntensity; this.emissiveIntensity = source.emissiveIntensity;
this.bumpMap = source.bumpMap; this.bumpMap = source.bumpMap;
this.bumpScale = source.bumpScale; this.bumpScale = source.bumpScale;
...@@ -20789,8 +20779,6 @@ THREE.MeshPhongMaterial.prototype.copy = function ( source ) { ...@@ -20789,8 +20779,6 @@ THREE.MeshPhongMaterial.prototype.copy = function ( source ) {
* color: <hex>, * color: <hex>,
* roughness: <float>, * roughness: <float>,
* metalness: <float>, * metalness: <float>,
* emissive: <hex>,
* opacity: <float>, * opacity: <float>,
* *
* map: new THREE.Texture( <Image> ), * map: new THREE.Texture( <Image> ),
...@@ -20801,8 +20789,9 @@ THREE.MeshPhongMaterial.prototype.copy = function ( source ) { ...@@ -20801,8 +20789,9 @@ THREE.MeshPhongMaterial.prototype.copy = function ( source ) {
* aoMap: new THREE.Texture( <Image> ), * aoMap: new THREE.Texture( <Image> ),
* aoMapIntensity: <float> * aoMapIntensity: <float>
* *
* emissive: <hex>,
* emissiveIntensity: <float>
* emissiveMap: new THREE.Texture( <Image> ), * emissiveMap: new THREE.Texture( <Image> ),
* emissiveMapIntensity: <float>
* *
* bumpMap: new THREE.Texture( <Image> ), * bumpMap: new THREE.Texture( <Image> ),
* bumpScale: <float>, * bumpScale: <float>,
...@@ -20853,8 +20842,6 @@ THREE.MeshStandardMaterial = function ( parameters ) { ...@@ -20853,8 +20842,6 @@ THREE.MeshStandardMaterial = function ( parameters ) {
this.roughness = 0.5; this.roughness = 0.5;
this.metalness = 0.5; this.metalness = 0.5;
this.emissive = new THREE.Color( 0x000000 );
this.map = null; this.map = null;
this.lightMap = null; this.lightMap = null;
...@@ -20863,8 +20850,9 @@ THREE.MeshStandardMaterial = function ( parameters ) { ...@@ -20863,8 +20850,9 @@ THREE.MeshStandardMaterial = function ( parameters ) {
this.aoMap = null; this.aoMap = null;
this.aoMapIntensity = 1.0; this.aoMapIntensity = 1.0;
this.emissive = new THREE.Color( 0x000000 );
this.emissiveIntensity = 1.0;
this.emissiveMap = null; this.emissiveMap = null;
this.emissiveMapIntensity = 1.0;
this.bumpMap = null; this.bumpMap = null;
this.bumpScale = 1; this.bumpScale = 1;
...@@ -20917,8 +20905,6 @@ THREE.MeshStandardMaterial.prototype.copy = function ( source ) { ...@@ -20917,8 +20905,6 @@ THREE.MeshStandardMaterial.prototype.copy = function ( source ) {
this.roughness = source.roughness; this.roughness = source.roughness;
this.metalness = source.metalness; this.metalness = source.metalness;
this.emissive.copy( source.emissive );
this.map = source.map; this.map = source.map;
this.lightMap = source.lightMap; this.lightMap = source.lightMap;
...@@ -20927,8 +20913,9 @@ THREE.MeshStandardMaterial.prototype.copy = function ( source ) { ...@@ -20927,8 +20913,9 @@ THREE.MeshStandardMaterial.prototype.copy = function ( source ) {
this.aoMap = source.aoMap; this.aoMap = source.aoMap;
this.aoMapIntensity = source.aoMapIntensity; this.aoMapIntensity = source.aoMapIntensity;
this.emissive.copy( source.emissive );
this.emissiveMap = source.emissiveMap; this.emissiveMap = source.emissiveMap;
this.emissiveMapIntensity = source.emissiveMapIntensity; this.emissiveIntensity = source.emissiveIntensity;
this.bumpMap = source.bumpMap; this.bumpMap = source.bumpMap;
this.bumpScale = source.bumpScale; this.bumpScale = source.bumpScale;
...@@ -23416,11 +23403,11 @@ THREE.ShaderChunk[ 'displacementmap_pars_vertex' ] = "#ifdef USE_DISPLACEMENTMAP ...@@ -23416,11 +23403,11 @@ THREE.ShaderChunk[ 'displacementmap_pars_vertex' ] = "#ifdef USE_DISPLACEMENTMAP
// File:src/renderers/shaders/ShaderChunk/emissivemap_fragment.glsl // File:src/renderers/shaders/ShaderChunk/emissivemap_fragment.glsl
THREE.ShaderChunk[ 'emissivemap_fragment' ] = "#ifdef USE_EMISSIVEMAP\n vec4 emissiveColor = texture2D( emissiveMap, vUv );\n emissiveColor.rgb = inputToLinear( emissiveColor.rgb );\n totalEmissiveLight *= emissiveColor.rgb * emissiveMapIntensity;\n#endif\n"; THREE.ShaderChunk[ 'emissivemap_fragment' ] = "#ifdef USE_EMISSIVEMAP\n vec4 emissiveColor = texture2D( emissiveMap, vUv );\n emissiveColor.rgb = inputToLinear( emissiveColor.rgb );\n totalEmissiveLight *= emissiveColor.rgb;\n#endif\n";
// File:src/renderers/shaders/ShaderChunk/emissivemap_pars_fragment.glsl // File:src/renderers/shaders/ShaderChunk/emissivemap_pars_fragment.glsl
THREE.ShaderChunk[ 'emissivemap_pars_fragment' ] = "#ifdef USE_EMISSIVEMAP\n uniform sampler2D emissiveMap;\n uniform float emissiveMapIntensity;\n#endif\n"; THREE.ShaderChunk[ 'emissivemap_pars_fragment' ] = "#ifdef USE_EMISSIVEMAP\n uniform sampler2D emissiveMap;\n#endif\n";
// File:src/renderers/shaders/ShaderChunk/envmap_fragment.glsl // File:src/renderers/shaders/ShaderChunk/envmap_fragment.glsl
...@@ -23714,107 +23701,106 @@ THREE.UniformsLib = { ...@@ -23714,107 +23701,106 @@ THREE.UniformsLib = {
common: { common: {
"diffuse" : { type: "c", value: new THREE.Color( 0xeeeeee ) }, "diffuse": { type: "c", value: new THREE.Color( 0xeeeeee ) },
"opacity" : { type: "f", value: 1.0 }, "opacity": { type: "f", value: 1.0 },
"map" : { type: "t", value: null }, "map": { type: "t", value: null },
"offsetRepeat" : { type: "v4", value: new THREE.Vector4( 0, 0, 1, 1 ) }, "offsetRepeat": { type: "v4", value: new THREE.Vector4( 0, 0, 1, 1 ) },
"specularMap" : { type: "t", value: null }, "specularMap": { type: "t", value: null },
"alphaMap" : { type: "t", value: null }, "alphaMap": { type: "t", value: null },
"envMap" : { type: "t", value: null }, "envMap": { type: "t", value: null },
"flipEnvMap" : { type: "f", value: - 1 }, "flipEnvMap": { type: "f", value: - 1 },
"reflectivity" : { type: "f", value: 1.0 }, "reflectivity": { type: "f", value: 1.0 },
"refractionRatio" : { type: "f", value: 0.98 } "refractionRatio": { type: "f", value: 0.98 }
}, },
aomap: { aomap: {
"aoMap" : { type: "t", value: null }, "aoMap": { type: "t", value: null },
"aoMapIntensity" : { type: "f", value: 1 }, "aoMapIntensity": { type: "f", value: 1 }
}, },
lightmap: { lightmap: {
"lightMap" : { type: "t", value: null }, "lightMap": { type: "t", value: null },
"lightMapIntensity" : { type: "f", value: 1 }, "lightMapIntensity": { type: "f", value: 1 }
}, },
emissivemap: { emissivemap: {
"emissiveMap" : { type: "t", value: null }, "emissiveMap": { type: "t", value: null }
"emissiveMapIntensity" : { type: "f", value: 1 },
}, },
bumpmap: { bumpmap: {
"bumpMap" : { type: "t", value: null }, "bumpMap": { type: "t", value: null },
"bumpScale" : { type: "f", value: 1 } "bumpScale": { type: "f", value: 1 }
}, },
normalmap: { normalmap: {
"normalMap" : { type: "t", value: null }, "normalMap": { type: "t", value: null },
"normalScale" : { type: "v2", value: new THREE.Vector2( 1, 1 ) } "normalScale": { type: "v2", value: new THREE.Vector2( 1, 1 ) }
}, },
displacementmap: { displacementmap: {
"displacementMap" : { type: "t", value: null }, "displacementMap": { type: "t", value: null },
"displacementScale" : { type: "f", value: 1 }, "displacementScale": { type: "f", value: 1 },
"displacementBias" : { type: "f", value: 0 } "displacementBias": { type: "f", value: 0 }
}, },
roughnessmap: { roughnessmap: {
"roughnessMap" : { type: "t", value: null } "roughnessMap": { type: "t", value: null }
}, },
metalnessmap: { metalnessmap: {
"metalnessMap" : { type: "t", value: null } "metalnessMap": { type: "t", value: null }
}, },
fog: { fog: {
"fogDensity" : { type: "f", value: 0.00025 }, "fogDensity": { type: "f", value: 0.00025 },
"fogNear" : { type: "f", value: 1 }, "fogNear": { type: "f", value: 1 },
"fogFar" : { type: "f", value: 2000 }, "fogFar": { type: "f", value: 2000 },
"fogColor" : { type: "c", value: new THREE.Color( 0xffffff ) } "fogColor": { type: "c", value: new THREE.Color( 0xffffff ) }
}, },
ambient: { ambient: {
"ambientLightColor" : { type: "fv", value: [] } "ambientLightColor": { type: "fv", value: [] }
}, },
lights: { lights: {
"directionalLights" : { type: "sa", value: [], properties: { "directionalLights": { type: "sa", value: [], properties: {
"direction": { type: "v3" }, "direction": { type: "v3" },
"color": { type: "c" }, "color": { type: "c" },
"shadow": { type: "i" } "shadow": { type: "i" }
} }, } },
"hemisphereLights" : { type: "sa", value: [], properties: { "hemisphereLights": { type: "sa", value: [], properties: {
"direction": { type: "v3" }, "direction": { type: "v3" },
"skyColor": { type: "c" }, "skyColor": { type: "c" },
"groundColor": { type: "c" } "groundColor": { type: "c" }
} }, } },
"pointLights" : { type: "sa", value: [], properties: { "pointLights": { type: "sa", value: [], properties: {
"color": { type: "c" }, "color": { type: "c" },
"position": { type: "v3" }, "position": { type: "v3" },
"decay": { type: "f" }, "decay": { type: "f" },
...@@ -23822,7 +23808,7 @@ THREE.UniformsLib = { ...@@ -23822,7 +23808,7 @@ THREE.UniformsLib = {
"shadow": { type: "i" } "shadow": { type: "i" }
} }, } },
"spotLights" : { type: "sa", value: [], properties: { "spotLights": { type: "sa", value: [], properties: {
"color": { type: "c" }, "color": { type: "c" },
"position": { type: "v3" }, "position": { type: "v3" },
"direction": { type: "v3" }, "direction": { type: "v3" },
...@@ -23837,12 +23823,12 @@ THREE.UniformsLib = { ...@@ -23837,12 +23823,12 @@ THREE.UniformsLib = {
points: { points: {
"diffuse" : { type: "c", value: new THREE.Color( 0xeeeeee ) }, "diffuse": { type: "c", value: new THREE.Color( 0xeeeeee ) },
"opacity" : { type: "f", value: 1.0 }, "opacity": { type: "f", value: 1.0 },
"size" : { type: "f", value: 1.0 }, "size": { type: "f", value: 1.0 },
"scale" : { type: "f", value: 1.0 }, "scale": { type: "f", value: 1.0 },
"map" : { type: "t", value: null }, "map": { type: "t", value: null },
"offsetRepeat" : { type: "v4", value: new THREE.Vector4( 0, 0, 1, 1 ) } "offsetRepeat": { type: "v4", value: new THREE.Vector4( 0, 0, 1, 1 ) }
}, },
...@@ -23851,10 +23837,10 @@ THREE.UniformsLib = { ...@@ -23851,10 +23837,10 @@ THREE.UniformsLib = {
"shadowMap": { type: "tv", value: [] }, "shadowMap": { type: "tv", value: [] },
"shadowMapSize": { type: "v2v", value: [] }, "shadowMapSize": { type: "v2v", value: [] },
"shadowBias" : { type: "fv1", value: [] }, "shadowBias": { type: "fv1", value: [] },
"shadowDarkness": { type: "fv1", value: [] }, "shadowDarkness": { type: "fv1", value: [] },
"shadowMatrix" : { type: "m4v", value: [] } "shadowMatrix": { type: "m4v", value: [] }
} }
...@@ -26175,12 +26161,10 @@ THREE.WebGLRenderer = function ( parameters ) { ...@@ -26175,12 +26161,10 @@ THREE.WebGLRenderer = function ( parameters ) {
} }
// Ensure buffer writing is enabled so they can be cleared on next render // Ensure depth buffer writing is enabled so it can be cleared on next render
state.setDepthTest( true ); state.setDepthTest( true );
state.setDepthWrite( true ); state.setDepthWrite( true );
state.setStencilTest( true );
state.setStencilWrite( true );
state.setColorWrite( true ); state.setColorWrite( true );
// _gl.finish(); // _gl.finish();
...@@ -26543,8 +26527,6 @@ THREE.WebGLRenderer = function ( parameters ) { ...@@ -26543,8 +26527,6 @@ THREE.WebGLRenderer = function ( parameters ) {
state.setDepthFunc( material.depthFunc ); state.setDepthFunc( material.depthFunc );
state.setDepthTest( material.depthTest ); state.setDepthTest( material.depthTest );
state.setDepthWrite( material.depthWrite ); state.setDepthWrite( material.depthWrite );
state.setStencilTest( material.stencilTest );
state.setStencilWrite( material.stencilWrite );
state.setColorWrite( material.colorWrite ); state.setColorWrite( material.colorWrite );
state.setPolygonOffset( material.polygonOffset, material.polygonOffsetFactor, material.polygonOffsetUnits ); state.setPolygonOffset( material.polygonOffset, material.polygonOffsetFactor, material.polygonOffsetUnits );
...@@ -26863,7 +26845,7 @@ THREE.WebGLRenderer = function ( parameters ) { ...@@ -26863,7 +26845,7 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( material.emissive ) { if ( material.emissive ) {
uniforms.emissive.value = material.emissive; uniforms.emissive.value.copy( material.emissive ).multiplyScalar( material.emissiveIntensity );
} }
...@@ -27013,7 +26995,6 @@ THREE.WebGLRenderer = function ( parameters ) { ...@@ -27013,7 +26995,6 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( material.emissiveMap ) { if ( material.emissiveMap ) {
uniforms.emissiveMap.value = material.emissiveMap; uniforms.emissiveMap.value = material.emissiveMap;
uniforms.emissiveMapIntensity.value = material.emissiveMapIntensity;
} }
...@@ -27034,7 +27015,6 @@ THREE.WebGLRenderer = function ( parameters ) { ...@@ -27034,7 +27015,6 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( material.emissiveMap ) { if ( material.emissiveMap ) {
uniforms.emissiveMap.value = material.emissiveMap; uniforms.emissiveMap.value = material.emissiveMap;
uniforms.emissiveMapIntensity.value = material.emissiveMapIntensity;
} }
...@@ -27089,7 +27069,6 @@ THREE.WebGLRenderer = function ( parameters ) { ...@@ -27089,7 +27069,6 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( material.emissiveMap ) { if ( material.emissiveMap ) {
uniforms.emissiveMap.value = material.emissiveMap; uniforms.emissiveMap.value = material.emissiveMap;
uniforms.emissiveMapIntensity.value = material.emissiveMapIntensity;
} }
...@@ -31386,7 +31365,6 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) { ...@@ -31386,7 +31365,6 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
currentBlending = null; currentBlending = null;
currentDepthWrite = null; currentDepthWrite = null;
currentStencilWrite = null;
currentColorWrite = null; currentColorWrite = null;
currentFlipSided = null; currentFlipSided = null;
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册