|
@@ -17,7 +17,7 @@
|
|
|
|
|
|
<h3>[name]()</h3>
|
|
|
<div>
|
|
|
- todo
|
|
|
+ This creates a generic material.
|
|
|
</div>
|
|
|
|
|
|
|
|
@@ -33,35 +33,44 @@
|
|
|
Material name. Default is an empty string.
|
|
|
</div>
|
|
|
|
|
|
- <h3>.[page:Number opacity]</h3>
|
|
|
+ <h3>.[page:Float opacity]</h3>
|
|
|
<div>
|
|
|
- Opacity. Default is *1*.
|
|
|
+ Float in the range of 0.0 - 1.0 indicating how see through the material is.
|
|
|
+ A value of 0.0 indicates fully transparent, 1.0 is fully opaque. If
|
|
|
+ *transparent* is not set to true for the material, the material will remain
|
|
|
+ fully opaque and this value will only affect its color.
|
|
|
</div>
|
|
|
+ <div>Default is *1.0*.</div>
|
|
|
|
|
|
<h3>.[page:Boolean transparent]</h3>
|
|
|
<div>
|
|
|
- Defines whether this material is transparent. This has an effect on rendering, as transparent objects need special treatment, and are rendered after the opaque (i.e. non transparent) objects. For a working example of this behaviour, check the [page:WebGLRenderer WebGLRenderer] code.
|
|
|
+ Defines whether this material is transparent. This has an effect on rendering,
|
|
|
+ as transparent objects need an special treatment, and are rendered after the
|
|
|
+ non transparent objects. For a working example of this behaviour, check the
|
|
|
+ [page:WebGLRenderer WebGLRenderer] code.<br />
|
|
|
+ When set to true, the extent to which the material is transparent is
|
|
|
+ controlled by setting *opacity*.
|
|
|
</div>
|
|
|
<div>Default is *false*.</div>
|
|
|
|
|
|
<h3>.[page:Blending blending]</h3>
|
|
|
<div>
|
|
|
- Which blending to use when displaying objects with this material. Default is [page:NormalBlending].
|
|
|
+ Which blending to use when displaying objects with this material. Default is [page:Materials NormalBlending].
|
|
|
</div>
|
|
|
|
|
|
<h3>.[page:Integer blendSrc]</h3>
|
|
|
<div>
|
|
|
- Blending source. It's one of the blending mode constants defined in [page:Three Three.js]. Default is *SrcAlphaFactor*.
|
|
|
+ Blending source. It's one of the blending mode constants defined in [page:Three Three.js]. Default is [page:CustomBlendingEquation SrcAlphaFactor]
|
|
|
</div>
|
|
|
|
|
|
<h3>.[page:Integer blendDst]</h3>
|
|
|
<div>
|
|
|
- Blending destination. It's one of the blending mode constants defined in [page:Three Three.js]. Default is *OneMinusSrcAlphaFactor*.
|
|
|
+ Blending destination. It's one of the blending mode constants defined in [page:Three Three.js]. Default is [page:CustomBlendingEquation OneMinusSrcAlphaFactor].
|
|
|
</div>
|
|
|
|
|
|
<h3>.[page:Integer blendEquation]</h3>
|
|
|
<div>
|
|
|
- Blending equation to use when applying blending. It's one of the constants defined in [page:Three Three.js]. Default is *AddEquation*.
|
|
|
+ Blending equation to use when applying blending. It's one of the constants defined in [page:Three Three.js]. Default is [page:CustomBlendingEquation AddEquation.]
|
|
|
</div>
|
|
|
|
|
|
<h3>.[page:Boolean depthTest]</h3>
|
|
@@ -112,7 +121,7 @@
|
|
|
Defines which of the face sides will be rendered - front, back or both.
|
|
|
</div>
|
|
|
<div>
|
|
|
- Default is *THREE.FrontSide*. Other options are *THREE.BackSide* and *THREE.DoubleSide*.
|
|
|
+ Default is [page:Materials THREE.FrontSide]. Other options are [page:Materials THREE.BackSide] and [page:Materials THREE.DoubleSide].
|
|
|
</div>
|
|
|
|
|
|
<h3>.[page:Boolean needsUpdate]</h3>
|