|
@@ -8696,7 +8696,7 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
|
|
|
if ( this.polygonOffsetFactor !== 0 ) data.polygonOffsetFactor = this.polygonOffsetFactor;
|
|
|
if ( this.polygonOffsetUnits !== 0 ) data.polygonOffsetUnits = this.polygonOffsetUnits;
|
|
|
|
|
|
- if ( this.linewidth && this.linewidth !== 1 ) data.linewidth = this.linewidth;
|
|
|
+ if ( this.lineWidth && this.lineWidth !== 1 ) data.lineWidth = this.lineWidth;
|
|
|
if ( this.dashSize !== undefined ) data.dashSize = this.dashSize;
|
|
|
if ( this.gapSize !== undefined ) data.gapSize = this.gapSize;
|
|
|
if ( this.scale !== undefined ) data.scale = this.scale;
|
|
@@ -8707,7 +8707,7 @@ Material.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
|
|
|
if ( this.premultipliedAlpha === true ) data.premultipliedAlpha = this.premultipliedAlpha;
|
|
|
|
|
|
if ( this.wireframe === true ) data.wireframe = this.wireframe;
|
|
|
- if ( this.wireframeLinewidth > 1 ) data.wireframeLinewidth = this.wireframeLinewidth;
|
|
|
+ if ( this.wireframelineWidth > 1 ) data.wireframelineWidth = this.wireframelineWidth;
|
|
|
if ( this.wireframeLinecap !== 'round' ) data.wireframeLinecap = this.wireframeLinecap;
|
|
|
if ( this.wireframeLinejoin !== 'round' ) data.wireframeLinejoin = this.wireframeLinejoin;
|
|
|
|
|
@@ -8881,7 +8881,7 @@ Object.defineProperty( Material.prototype, 'needsUpdate', {
|
|
|
* depthWrite: <bool>,
|
|
|
*
|
|
|
* wireframe: <boolean>,
|
|
|
- * wireframeLinewidth: <float>,
|
|
|
+ * wireframelineWidth: <float>,
|
|
|
*
|
|
|
* skinning: <bool>,
|
|
|
* morphTargets: <bool>
|
|
@@ -8914,7 +8914,7 @@ function MeshBasicMaterial( parameters ) {
|
|
|
this.refractionRatio = 0.98;
|
|
|
|
|
|
this.wireframe = false;
|
|
|
- this.wireframeLinewidth = 1;
|
|
|
+ this.wireframelineWidth = 1;
|
|
|
this.wireframeLinecap = 'round';
|
|
|
this.wireframeLinejoin = 'round';
|
|
|
|
|
@@ -8954,7 +8954,7 @@ MeshBasicMaterial.prototype.copy = function ( source ) {
|
|
|
this.refractionRatio = source.refractionRatio;
|
|
|
|
|
|
this.wireframe = source.wireframe;
|
|
|
- this.wireframeLinewidth = source.wireframeLinewidth;
|
|
|
+ this.wireframelineWidth = source.wireframelineWidth;
|
|
|
this.wireframeLinecap = source.wireframeLinecap;
|
|
|
this.wireframeLinejoin = source.wireframeLinejoin;
|
|
|
|
|
@@ -11700,7 +11700,7 @@ var default_fragment = "void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0
|
|
|
* vertexShader: <string>,
|
|
|
*
|
|
|
* wireframe: <boolean>,
|
|
|
- * wireframeLinewidth: <float>,
|
|
|
+ * wireframelineWidth: <float>,
|
|
|
*
|
|
|
* lights: <bool>,
|
|
|
*
|
|
@@ -11722,10 +11722,10 @@ function ShaderMaterial( parameters ) {
|
|
|
this.vertexShader = default_vertex;
|
|
|
this.fragmentShader = default_fragment;
|
|
|
|
|
|
- this.linewidth = 1;
|
|
|
+ this.lineWidth = 1;
|
|
|
|
|
|
this.wireframe = false;
|
|
|
- this.wireframeLinewidth = 1;
|
|
|
+ this.wireframelineWidth = 1;
|
|
|
|
|
|
this.fog = false; // set to use scene fog
|
|
|
this.lights = false; // set to use scene lights
|
|
@@ -11786,7 +11786,7 @@ ShaderMaterial.prototype.copy = function ( source ) {
|
|
|
this.defines = Object.assign( {}, source.defines );
|
|
|
|
|
|
this.wireframe = source.wireframe;
|
|
|
- this.wireframeLinewidth = source.wireframeLinewidth;
|
|
|
+ this.wireframelineWidth = source.wireframelineWidth;
|
|
|
|
|
|
this.lights = source.lights;
|
|
|
this.clipping = source.clipping;
|
|
@@ -18877,7 +18877,7 @@ function WebGLRenderStates( extensions, capabilities ) {
|
|
|
* displacementBias: <float>,
|
|
|
*
|
|
|
* wireframe: <boolean>,
|
|
|
- * wireframeLinewidth: <float>
|
|
|
+ * wireframelineWidth: <float>
|
|
|
* }
|
|
|
*/
|
|
|
|
|
@@ -18901,7 +18901,7 @@ function MeshDepthMaterial( parameters ) {
|
|
|
this.displacementBias = 0;
|
|
|
|
|
|
this.wireframe = false;
|
|
|
- this.wireframeLinewidth = 1;
|
|
|
+ this.wireframelineWidth = 1;
|
|
|
|
|
|
this.fog = false;
|
|
|
|
|
@@ -18932,7 +18932,7 @@ MeshDepthMaterial.prototype.copy = function ( source ) {
|
|
|
this.displacementBias = source.displacementBias;
|
|
|
|
|
|
this.wireframe = source.wireframe;
|
|
|
- this.wireframeLinewidth = source.wireframeLinewidth;
|
|
|
+ this.wireframelineWidth = source.wireframelineWidth;
|
|
|
|
|
|
return this;
|
|
|
|
|
@@ -19377,8 +19377,8 @@ function WebGLShadowMap( _renderer, _objects, maxTextureSize ) {
|
|
|
result.clippingPlanes = material.clippingPlanes;
|
|
|
result.clipIntersection = material.clipIntersection;
|
|
|
|
|
|
- result.wireframeLinewidth = material.wireframeLinewidth;
|
|
|
- result.linewidth = material.linewidth;
|
|
|
+ result.wireframelineWidth = material.wireframelineWidth;
|
|
|
+ result.lineWidth = material.lineWidth;
|
|
|
|
|
|
if ( light.isPointLight === true && result.isMeshDistanceMaterial === true ) {
|
|
|
|
|
@@ -19780,7 +19780,7 @@ function WebGLState( gl, extensions, capabilities ) {
|
|
|
let currentFlipSided = null;
|
|
|
let currentCullFace = null;
|
|
|
|
|
|
- let currentLineWidth = null;
|
|
|
+ let currentlineWidth = null;
|
|
|
|
|
|
let currentPolygonOffsetFactor = null;
|
|
|
let currentPolygonOffsetUnits = null;
|
|
@@ -20149,13 +20149,13 @@ function WebGLState( gl, extensions, capabilities ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
- function setLineWidth( width ) {
|
|
|
+ function setlineWidth( width ) {
|
|
|
|
|
|
- if ( width !== currentLineWidth ) {
|
|
|
+ if ( width !== currentlineWidth ) {
|
|
|
|
|
|
if ( lineWidthAvailable ) gl.lineWidth( width );
|
|
|
|
|
|
- currentLineWidth = width;
|
|
|
+ currentlineWidth = width;
|
|
|
|
|
|
}
|
|
|
|
|
@@ -20346,7 +20346,7 @@ function WebGLState( gl, extensions, capabilities ) {
|
|
|
currentFlipSided = null;
|
|
|
currentCullFace = null;
|
|
|
|
|
|
- currentLineWidth = null;
|
|
|
+ currentlineWidth = null;
|
|
|
|
|
|
currentPolygonOffsetFactor = null;
|
|
|
currentPolygonOffsetUnits = null;
|
|
@@ -20376,7 +20376,7 @@ function WebGLState( gl, extensions, capabilities ) {
|
|
|
setFlipSided: setFlipSided,
|
|
|
setCullFace: setCullFace,
|
|
|
|
|
|
- setLineWidth: setLineWidth,
|
|
|
+ setlineWidth: setlineWidth,
|
|
|
setPolygonOffset: setPolygonOffset,
|
|
|
|
|
|
setScissorTest: setScissorTest,
|
|
@@ -24102,7 +24102,7 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
if ( material.wireframe === true ) {
|
|
|
|
|
|
- state.setLineWidth( material.wireframeLinewidth * getTargetPixelRatio() );
|
|
|
+ state.setlineWidth( material.wireframelineWidth * getTargetPixelRatio() );
|
|
|
renderer.setMode( 1 );
|
|
|
|
|
|
} else {
|
|
@@ -24113,11 +24113,11 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
} else if ( object.isLine ) {
|
|
|
|
|
|
- let lineWidth = material.linewidth;
|
|
|
+ let lineWidth = material.lineWidth;
|
|
|
|
|
|
if ( lineWidth === undefined ) lineWidth = 1; // Not using Line*Material
|
|
|
|
|
|
- state.setLineWidth( lineWidth * getTargetPixelRatio() );
|
|
|
+ state.setlineWidth( lineWidth * getTargetPixelRatio() );
|
|
|
|
|
|
if ( object.isLineSegments ) {
|
|
|
|
|
@@ -26784,7 +26784,7 @@ InstancedMesh.prototype = Object.assign( Object.create( Mesh.prototype ), {
|
|
|
* color: <hex>,
|
|
|
* opacity: <float>,
|
|
|
*
|
|
|
- * linewidth: <float>,
|
|
|
+ * lineWidth: <float>,
|
|
|
* linecap: "round",
|
|
|
* linejoin: "round"
|
|
|
* }
|
|
@@ -26798,7 +26798,7 @@ function LineBasicMaterial( parameters ) {
|
|
|
|
|
|
this.color = new Color( 0xffffff );
|
|
|
|
|
|
- this.linewidth = 1;
|
|
|
+ this.lineWidth = 1;
|
|
|
this.linecap = 'round';
|
|
|
this.linejoin = 'round';
|
|
|
|
|
@@ -26819,7 +26819,7 @@ LineBasicMaterial.prototype.copy = function ( source ) {
|
|
|
|
|
|
this.color.copy( source.color );
|
|
|
|
|
|
- this.linewidth = source.linewidth;
|
|
|
+ this.lineWidth = source.lineWidth;
|
|
|
this.linecap = source.linecap;
|
|
|
this.linejoin = source.linejoin;
|
|
|
|
|
@@ -33485,7 +33485,7 @@ RawShaderMaterial.prototype.isRawShaderMaterial = true;
|
|
|
* refractionRatio: <float>,
|
|
|
*
|
|
|
* wireframe: <boolean>,
|
|
|
- * wireframeLinewidth: <float>,
|
|
|
+ * wireframelineWidth: <float>,
|
|
|
*
|
|
|
* skinning: <bool>,
|
|
|
* morphTargets: <bool>,
|
|
@@ -33540,7 +33540,7 @@ function MeshStandardMaterial( parameters ) {
|
|
|
this.refractionRatio = 0.98;
|
|
|
|
|
|
this.wireframe = false;
|
|
|
- this.wireframeLinewidth = 1;
|
|
|
+ this.wireframelineWidth = 1;
|
|
|
this.wireframeLinecap = 'round';
|
|
|
this.wireframeLinejoin = 'round';
|
|
|
|
|
@@ -33604,7 +33604,7 @@ MeshStandardMaterial.prototype.copy = function ( source ) {
|
|
|
this.refractionRatio = source.refractionRatio;
|
|
|
|
|
|
this.wireframe = source.wireframe;
|
|
|
- this.wireframeLinewidth = source.wireframeLinewidth;
|
|
|
+ this.wireframelineWidth = source.wireframelineWidth;
|
|
|
this.wireframeLinecap = source.wireframeLinecap;
|
|
|
this.wireframeLinejoin = source.wireframeLinejoin;
|
|
|
|
|
@@ -33763,7 +33763,7 @@ MeshPhysicalMaterial.prototype.copy = function ( source ) {
|
|
|
* refractionRatio: <float>,
|
|
|
*
|
|
|
* wireframe: <boolean>,
|
|
|
- * wireframeLinewidth: <float>,
|
|
|
+ * wireframelineWidth: <float>,
|
|
|
*
|
|
|
* skinning: <bool>,
|
|
|
* morphTargets: <bool>,
|
|
@@ -33814,7 +33814,7 @@ function MeshPhongMaterial( parameters ) {
|
|
|
this.refractionRatio = 0.98;
|
|
|
|
|
|
this.wireframe = false;
|
|
|
- this.wireframeLinewidth = 1;
|
|
|
+ this.wireframelineWidth = 1;
|
|
|
this.wireframeLinecap = 'round';
|
|
|
this.wireframeLinejoin = 'round';
|
|
|
|
|
@@ -33872,7 +33872,7 @@ MeshPhongMaterial.prototype.copy = function ( source ) {
|
|
|
this.refractionRatio = source.refractionRatio;
|
|
|
|
|
|
this.wireframe = source.wireframe;
|
|
|
- this.wireframeLinewidth = source.wireframeLinewidth;
|
|
|
+ this.wireframelineWidth = source.wireframelineWidth;
|
|
|
this.wireframeLinecap = source.wireframeLinecap;
|
|
|
this.wireframeLinejoin = source.wireframeLinejoin;
|
|
|
|
|
@@ -33915,7 +33915,7 @@ MeshPhongMaterial.prototype.copy = function ( source ) {
|
|
|
* alphaMap: new THREE.Texture( <Image> ),
|
|
|
*
|
|
|
* wireframe: <boolean>,
|
|
|
- * wireframeLinewidth: <float>,
|
|
|
+ * wireframelineWidth: <float>,
|
|
|
*
|
|
|
* skinning: <bool>,
|
|
|
* morphTargets: <bool>,
|
|
@@ -33960,7 +33960,7 @@ function MeshToonMaterial( parameters ) {
|
|
|
this.alphaMap = null;
|
|
|
|
|
|
this.wireframe = false;
|
|
|
- this.wireframeLinewidth = 1;
|
|
|
+ this.wireframelineWidth = 1;
|
|
|
this.wireframeLinecap = 'round';
|
|
|
this.wireframeLinejoin = 'round';
|
|
|
|
|
@@ -34010,7 +34010,7 @@ MeshToonMaterial.prototype.copy = function ( source ) {
|
|
|
this.alphaMap = source.alphaMap;
|
|
|
|
|
|
this.wireframe = source.wireframe;
|
|
|
- this.wireframeLinewidth = source.wireframeLinewidth;
|
|
|
+ this.wireframelineWidth = source.wireframelineWidth;
|
|
|
this.wireframeLinecap = source.wireframeLinecap;
|
|
|
this.wireframeLinejoin = source.wireframeLinejoin;
|
|
|
|
|
@@ -34038,7 +34038,7 @@ MeshToonMaterial.prototype.copy = function ( source ) {
|
|
|
* displacementBias: <float>,
|
|
|
*
|
|
|
* wireframe: <boolean>,
|
|
|
- * wireframeLinewidth: <float>
|
|
|
+ * wireframelineWidth: <float>
|
|
|
*
|
|
|
* skinning: <bool>,
|
|
|
* morphTargets: <bool>,
|
|
@@ -34064,7 +34064,7 @@ function MeshNormalMaterial( parameters ) {
|
|
|
this.displacementBias = 0;
|
|
|
|
|
|
this.wireframe = false;
|
|
|
- this.wireframeLinewidth = 1;
|
|
|
+ this.wireframelineWidth = 1;
|
|
|
|
|
|
this.fog = false;
|
|
|
|
|
@@ -34097,7 +34097,7 @@ MeshNormalMaterial.prototype.copy = function ( source ) {
|
|
|
this.displacementBias = source.displacementBias;
|
|
|
|
|
|
this.wireframe = source.wireframe;
|
|
|
- this.wireframeLinewidth = source.wireframeLinewidth;
|
|
|
+ this.wireframelineWidth = source.wireframelineWidth;
|
|
|
|
|
|
this.skinning = source.skinning;
|
|
|
this.morphTargets = source.morphTargets;
|
|
@@ -34134,7 +34134,7 @@ MeshNormalMaterial.prototype.copy = function ( source ) {
|
|
|
* refractionRatio: <float>,
|
|
|
*
|
|
|
* wireframe: <boolean>,
|
|
|
- * wireframeLinewidth: <float>,
|
|
|
+ * wireframelineWidth: <float>,
|
|
|
*
|
|
|
* skinning: <bool>,
|
|
|
* morphTargets: <bool>,
|
|
@@ -34172,7 +34172,7 @@ function MeshLambertMaterial( parameters ) {
|
|
|
this.refractionRatio = 0.98;
|
|
|
|
|
|
this.wireframe = false;
|
|
|
- this.wireframeLinewidth = 1;
|
|
|
+ this.wireframelineWidth = 1;
|
|
|
this.wireframeLinecap = 'round';
|
|
|
this.wireframeLinejoin = 'round';
|
|
|
|
|
@@ -34217,7 +34217,7 @@ MeshLambertMaterial.prototype.copy = function ( source ) {
|
|
|
this.refractionRatio = source.refractionRatio;
|
|
|
|
|
|
this.wireframe = source.wireframe;
|
|
|
- this.wireframeLinewidth = source.wireframeLinewidth;
|
|
|
+ this.wireframelineWidth = source.wireframelineWidth;
|
|
|
this.wireframeLinecap = source.wireframeLinecap;
|
|
|
this.wireframeLinejoin = source.wireframeLinejoin;
|
|
|
|
|
@@ -34335,7 +34335,7 @@ MeshMatcapMaterial.prototype.copy = function ( source ) {
|
|
|
* color: <hex>,
|
|
|
* opacity: <float>,
|
|
|
*
|
|
|
- * linewidth: <float>,
|
|
|
+ * lineWidth: <float>,
|
|
|
*
|
|
|
* scale: <float>,
|
|
|
* dashSize: <float>,
|
|
@@ -40379,13 +40379,13 @@ MaterialLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
|
|
|
if ( json.stencilZPass !== undefined ) material.stencilZPass = json.stencilZPass;
|
|
|
|
|
|
if ( json.wireframe !== undefined ) material.wireframe = json.wireframe;
|
|
|
- if ( json.wireframeLinewidth !== undefined ) material.wireframeLinewidth = json.wireframeLinewidth;
|
|
|
+ if ( json.wireframelineWidth !== undefined ) material.wireframelineWidth = json.wireframelineWidth;
|
|
|
if ( json.wireframeLinecap !== undefined ) material.wireframeLinecap = json.wireframeLinecap;
|
|
|
if ( json.wireframeLinejoin !== undefined ) material.wireframeLinejoin = json.wireframeLinejoin;
|
|
|
|
|
|
if ( json.rotation !== undefined ) material.rotation = json.rotation;
|
|
|
|
|
|
- if ( json.linewidth !== 1 ) material.linewidth = json.linewidth;
|
|
|
+ if ( json.lineWidth !== 1 ) material.lineWidth = json.lineWidth;
|
|
|
if ( json.dashSize !== undefined ) material.dashSize = json.dashSize;
|
|
|
if ( json.gapSize !== undefined ) material.gapSize = json.gapSize;
|
|
|
if ( json.scale !== undefined ) material.scale = json.scale;
|