Skip to content

Commit 1df48ee

Browse files
committed
Removed wrap lighting from Phong and Lambert
1 parent 292c93e commit 1df48ee

22 files changed

Lines changed: 11 additions & 184 deletions

docs/api/materials/MeshLambertMaterial.html

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,6 @@ <h3>[property:Color emissive]</h3>
5353
<div>
5454
Emissive (light) color of the material, essentially a solid color unaffected by other lighting. Default is black.<br />
5555
</div>
56-
57-
<h3>[property:boolean wrapAround]</h3>
58-
<div>
59-
Define whether the diffuse lighting wraps around the model or not. This option adds a little more (tintable) light
60-
onto the side of the object in relation to a light.
61-
</div>
62-
63-
<h3>[property:Vector3 wrapRGB]</h3>
64-
<div>
65-
Decide how much of the wrap around values get used if the wrapAround option is set. The x, y, z values correspond
66-
to the r, g, b values respectively. The typical range is of each is from 0 to 1. For example setting all of the
67-
vector values to 0.5 will add a moderate amount of light to the side of the model. Changing *b* to 1 will
68-
tint the light on the side to be more blue. Defaults to *(1,1,1)*.
69-
</div>
7056

7157
<h3>[property:Texture map]</h3>
7258
<div>Set color texture map. Default is null.</div>

docs/api/materials/MeshPhongMaterial.html

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,6 @@ <h3>[property:boolean metal]</h3>
7474
underlying colors.
7575
</div>
7676

77-
<h3>[property:boolean wrapAround]</h3>
78-
<div>
79-
Define whether the diffuse lighting wraps around the model or not. This option adds a little more (tintable) light
80-
onto the side of the object in relation to a light.
81-
</div>
82-
83-
<h3>[property:Vector3 wrapRGB]</h3>
84-
<div>
85-
Decide how much of the wrap around values get used if the wrapAround option is set. The x, y, z values correspond
86-
to the r, g, b values respectively. The typical range is of each is from 0 to 1. For example setting all of the
87-
vector values to 0.5 will add a moderate amount of light to the side of the model. Changing *b* to 1 will
88-
tint the light on the side to be more blue. Defaults to (1,1,1).
89-
</div>
90-
9177
<h3>[property:Texture map]</h3>
9278
<div>Set color texture map. Default is null.</div>
9379

examples/js/MD2Character.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ THREE.MD2Character = function () {
205205
var materialWireframe = new THREE.MeshPhongMaterial( { color: 0xffaa00, specular: 0x111111, shininess: 50, wireframe: true, shading: THREE.SmoothShading, map: whiteMap, morphTargets: true, morphNormals: true, metal: false } );
206206

207207
var materialTexture = new THREE.MeshPhongMaterial( { color: 0xffffff, specular: 0x111111, shininess: 50, wireframe: false, shading: THREE.SmoothShading, map: skinMap, morphTargets: true, morphNormals: true, metal: false } );
208-
materialTexture.wrapAround = true;
209208

210209
//
211210

examples/js/MD2CharacterComplex.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,6 @@ THREE.MD2CharacterComplex = function () {
528528
var materialWireframe = new THREE.MeshPhongMaterial( { color: 0xffaa00, specular: 0x111111, shininess: 50, wireframe: true, shading: THREE.SmoothShading, map: whiteMap, morphTargets: true, morphNormals: true, metal: true } );
529529

530530
var materialTexture = new THREE.MeshPhongMaterial( { color: 0xffffff, specular: 0x111111, shininess: 50, wireframe: false, shading: THREE.SmoothShading, map: skinMap, morphTargets: true, morphNormals: true, metal: true } );
531-
materialTexture.wrapAround = true;
532531

533532
//
534533

examples/js/UCSCharacter.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ THREE.UCSCharacter = function() {
101101
specular: 10.0,
102102
map: skins[ i ],
103103
skinning: true,
104-
morphTargets: true,
105-
wrapAround: true
104+
morphTargets: true
106105
} );
107106

108107
}

examples/scenes/test_scene.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,12 +567,12 @@
567567

568568
"phong_man": {
569569
"type": "MeshPhongMaterial",
570-
"parameters": { "color": 16737894, "specular": 2236962, "shininess": 40, "wrapAround": true, "wrapRGB": [ 0.15, 0.02, 0.01 ] }
570+
"parameters": { "color": 16737894, "specular": 2236962, "shininess": 40 }
571571
},
572572

573573
"phong_hand": {
574574
"type": "MeshPhongMaterial",
575-
"parameters": { "color": 14531481, "specular": 2236962, "shininess": 40, "wrapAround": true, "wrapRGB": [ 0.15, 0.02, 0.01 ] }
575+
"parameters": { "color": 14531481, "specular": 2236962, "shininess": 40 }
576576
},
577577

578578
"phong_bunny": {

examples/webgl_animation_skinning_morph.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,6 @@
241241
//m.combine = THREE.MixOperation;
242242
//m.reflectivity = 0.75;
243243

244-
m.wrapAround = true;
245-
246244
}
247245

248246
mesh = new THREE.SkinnedMesh( geometry, new THREE.MeshFaceMaterial( materials ) );

examples/webgl_loader_ctm.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,6 @@
189189
specularMap: THREE.ImageUtils.loadTexture( "obj/leeperrysmith/Map-SPEC.jpg" ),
190190
normalMap: THREE.ImageUtils.loadTexture( "obj/leeperrysmith/Infinite-Level_02_Tangent_SmoothUV.jpg" ),
191191
normalScale: new THREE.Vector2( 0.8, 0.8 ),
192-
wrapRGB: new THREE.Vector3( 0.75, 0.5, 0.5 ),
193-
wrapAround: true
194192

195193
} );
196194

examples/webgl_loader_utf8.html

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,6 @@
159159
node.castShadow = true;
160160
node.receiveShadow = true;
161161

162-
if ( node.material && node.material.name === "skin" ) {
163-
164-
node.material.wrapAround = true;
165-
node.material.wrapRGB.set( 0.6, 0.2, 0.1 );
166-
167-
}
168-
169162
} );
170163

171164
}, { normalizeRGB: true } );
@@ -186,13 +179,6 @@
186179
node.castShadow = true;
187180
node.receiveShadow = true;
188181

189-
if ( node.material && ( node.material.name === "head" || node.material.name === "skinbody" ) ) {
190-
191-
node.material.wrapAround = true;
192-
node.material.wrapRGB.set( 0.6, 0.2, 0.1 );
193-
194-
}
195-
196182
} );
197183

198184
}, { normalizeRGB: true } );

examples/webgl_materials_normalmap.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,6 @@
126126
specularMap: THREE.ImageUtils.loadTexture( "obj/leeperrysmith/Map-SPEC.jpg" ),
127127
normalMap: THREE.ImageUtils.loadTexture( "obj/leeperrysmith/Infinite-Level_02_Tangent_SmoothUV.jpg" ),
128128
normalScale: new THREE.Vector2( 0.8, 0.8 ),
129-
wrapRGB: new THREE.Vector3( 0.575, 0.5, 0.5 ),
130-
wrapAround: true
131129
} );
132130

133131
loader = new THREE.JSONLoader( true );

0 commit comments

Comments
 (0)