Optional allowWhether it's possible to override the material with Scene#overrideMaterial or not.
true
Optional alphaEnables alpha hashed transparency, an alternative to Material#transparent or Material#alphaTest. The material will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise, but approximates alpha blending without the associated problems of sorting. Using TAA can reduce the resulting noise.
false
Optional alphaWhether alpha to coverage should be enabled or not. Can only be used with MSAA-enabled contexts
(meaning when the renderer was created with antialias parameter set to true). Enabling this
will smooth aliasing on clip plane edges and alphaTest-clipped edges.
false
Optional arrow箭头贴图URL
PipelinePBRMaterialParameters
Optional blendRepresents the alpha value of the constant blend color.
This property has only an effect when using custom blending with ConstantAlpha or OneMinusConstantAlpha.
0
Optional blendRepresents the RGB values of the constant blend color.
This property has only an effect when using custom blending with ConstantColor or OneMinusConstantColor.
(0,0,0)
Optional blendDefines the blending destination factor.
OneMinusSrcAlphaFactor
Optional blendDefines the blending destination alpha factor.
null
Optional blendDefines the blending equation.
AddEquation
Optional blendDefines the blending equation of the alpha channel.
null
Optional blendDefines the blending source factor.
SrcAlphaFactor
Optional blendDefines the blending source alpha factor.
null
Optional blendingDefines the blending type of the material.
It must be set to CustomBlending if custom blending properties like
Material#blendSrc, Material#blendDst or Material#blendEquation
should have any effect.
NormalBlending
Optional clearcoatclear coat层的强度,范围从0.0到1.0m,可选,默认值为 0.0
PipelinePBRMaterialParameters
Optional clearcoatclear coat层的粗糙度,由0.0到1.0。 默认为0.0
PipelinePBRMaterialParameters
Optional clipChanges the behavior of clipping planes so that only their intersection is clipped, rather than their union.
false
Optional clipDefines whether to clip shadows according to the clipping planes specified on this material.
false
Optional clippingUser-defined clipping planes specified as THREE.Plane objects in world
space. These planes apply to the objects this material is attached to.
Points in space whose signed distance to the plane is negative are clipped
(not rendered). This requires WebGLRenderer#localClippingEnabled to
be true.
null
Optional colorWhether to render the material's color.
This can be used in conjunction with Object3D#renderOder to create invisible objects that occlude other objects.
true
Optional depthDefines the depth function.
LessEqualDepth
Optional depthWhether to have depth test enabled when rendering this material. When the depth test is disabled, the depth write will also be implicitly disabled.
true
Optional depthWhether rendering this material has any effect on the depth buffer.
When drawing 2D overlays it can be useful to disable the depth writing in order to layer several things together without creating z-index artifacts.
true
Optional ditheringWhether to apply dithering to the color to remove the appearance of banding.
false
Optional emissive自发光颜色,可选,默认为黑色
PipelinePBRMaterialParameters
Optional emissive自发光强度,可选,默认1
PipelinePBRMaterialParameters
Optional env环境贴图的强度,可选,默认1.0
PipelinePBRMaterialParameters
Optional forceWhether double-sided, transparent objects should be rendered with a single pass or not.
The engine renders double-sided, transparent objects with two draw calls (back faces first,
then front faces) to mitigate transparency artifacts. There are scenarios however where this
approach produces no quality gains but still doubles draw calls e.g. when rendering flat
vegetation like grass sprites. In these cases, set the forceSinglePass flag to true to
disable the two pass rendering to avoid performance issues.
false
Optional ior非金属材质所设置的折射率,范围由1.0到2.333。默认为1.5
PipelinePBRMaterialParameters
Optional map基础贴图URL
PipelineSchemeMaterialParameters
Optional metalness非金属材质,如木材或石材,使用0.0,金属使用1.0,通常没有中间值。 默认值为0.0。0.0到1.0之间的值可用于生锈金属的外观
PipelinePBRMaterialParameters
Optional metalness金属度贴图URL
PipelinePBRMaterialParameters
Optional nameThe name of the material.
Optional normal法线贴图URL
PipelinePBRMaterialParameters
Optional opacityDefines how transparent the material is.
A value of 0.0 indicates fully transparent, 1.0 is fully opaque.
If the Material#transparent is not set to true,
the material will remain fully opaque and this value will only affect its color.
1
Optional polygonWhether to use polygon offset or not. When enabled, each fragment's depth value will be offset after it is interpolated from the depth values of the appropriate vertices. The offset is added before the depth test is performed and before the value is written into the depth buffer.
Can be useful for rendering hidden-line images, for applying decals to surfaces, and for rendering solids with highlighted edges.
false
Optional polygonSpecifies a scale factor that is used to create a variable depth offset for each polygon.
0
Optional polygonIs multiplied by an implementation-specific value to create a constant depth offset.
0
Optional precisionOverride the renderer's default precision for this material.
null
Optional premultipliedWhether to premultiply the alpha (transparency) value.
false
Optional reflectivity反射率,由0.0到1.0。默认为0.5, 相当于折射率1.5,( 模拟了非金属材质的反射率。当metalness为1.0时,此属性无效 )
PipelinePBRMaterialParameters
Optional roughness材质的粗糙程度,0.0表示平滑的镜面反射,1.0表示完全漫反射。默认值为1.0
PipelinePBRMaterialParameters
Optional roughness粗糙度贴图URL
PipelinePBRMaterialParameters
Optional shadowDefines which side of faces cast shadows. If null, the side casting shadows
is determined as follows:
FrontSide, the back side cast shadows.BackSide, the front side cast shadows.DoubleSide, both sides cast shadows.null
Optional sideDefines which side of faces will be rendered - front, back or both.
FrontSide
Optional specular非金属材质在垂直于法线方向观看时的高光反射颜色, 可选, 默认白色
PipelinePBRMaterialParameters
Optional specular非金属材质高光反射强度, 可选,默认0.0
PipelinePBRMaterialParameters
Optional stencilWhich stencil operation to perform when the comparison function returns false.
KeepStencilOp
Optional stencilThe stencil comparison function to use.
AlwaysStencilFunc
Optional stencilThe bit mask to use when comparing against the stencil buffer.
0xff
Optional stencilThe value to use when performing stencil comparisons or stencil operations.
0
Optional stencilWhether stencil operations are performed against the stencil buffer. In
order to perform writes or comparisons against the stencil buffer this
value must be true.
false
Optional stencilThe bit mask to use when writing to the stencil buffer.
0xff
Optional stencilZFailWhich stencil operation to perform when the comparison function returns
true but the depth test fails.
KeepStencilOp
Optional stencilZPassWhich stencil operation to perform when the comparison function returns
true and the depth test passes.
KeepStencilOp
Optional thickness曲面下体积的厚度, 可选,默认0.0
PipelinePBRMaterialParameters
Optional toneDefines whether this material is tone mapped according to the renderer's tone mapping setting.
It is ignored when rendering to a render target or using post processing or when using
WebGPURenderer. In all these cases, all materials are honored by tone mapping.
true
Optional transmission透光率,可选,默认0.0
PipelinePBRMaterialParameters
Optional transparentDefines whether this material is transparent. This has an effect on rendering as transparent objects need special treatment and are rendered after non-transparent objects.
When set to true, the extent to which the material is transparent is controlled by Material#opacity.
false
Optional userAn object that can be used to store custom data about the Material. It should not hold references to functions as these will not be cloned.
Optional vertexIf set to true, vertex colors should be used.
The engine supports RGB and RGBA vertex colors depending on whether a three (RGB) or four (RGBA) component color buffer attribute is used.
false
Optional visibleDefines whether 3D objects using this material are visible.
true
Optional wireframe线框模式,可选,默认false
PipelineSchemeMaterialParameters
管线PBR材质参数
Export
PipelinePBRMaterialParameters
Date
2023.5.8
Author
yj