C# Class THREE.Material

Afficher le fichier Open project: guidovanhilst/SharpThreejs Class Usage Examples

Méthodes publiques

Свойство Type Description
alphaTest double
blendDst BlendingSourceType
blendEquation EquationType
blendSrc BlendingSourceType
blending BlendingType
color Color
depthTest bool
depthWrite bool
map Texture
needsUpdate bool
opacity double
overdraw double
polygonOffset bool
polygonOffsetFactor double
polygonOffsetUnits double
shading ShadingType
side SideType
transparent bool
visible bool
wireframe bool
wireframeLinewidth double

Property Details

alphaTest public_oe property

Sets the alpha value to be used when running an alpha test. Default is 0.
public double alphaTest
Résultat double

blendDst public_oe property

Blending destination. It's one of the blending mode constants defined in Three.js. Default is OneMinusSrcAlphaFactor.
public BlendingSourceType blendDst
Résultat BlendingSourceType

blendEquation public_oe property

Blending equation to use when applying blending. It's one of the constants defined in Three.js. Default is AddEquation.
public EquationType blendEquation
Résultat EquationType

blendSrc public_oe property

Blending source. It's one of the blending mode constants defined in Three.js. Default is SrcAlphaFactor. See the destination factors constants for all possible values.
public BlendingSourceType blendSrc
Résultat BlendingSourceType

blending public_oe property

Which blending to use when displaying objects with this material. Default is NormalBlending. See the blending mode constants for all possible values.
public BlendingType blending
Résultat BlendingType

color public_oe property

Diffuse color of the material. Default is white.
public Color color
Résultat Color

depthTest public_oe property

Whether to have depth test enabled when rendering this material. Default is true.
public bool depthTest
Résultat bool

depthWrite public_oe property

Whether rendering this material has any effect on the depth buffer. Default is true. 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.
public bool depthWrite
Résultat bool

map public_oe property

public Texture,THREE map
Résultat Texture

needsUpdate public_oe property

Specifies that the material needs to be updated at the WebGL level. Set it to true if you made changes that need to be reflected in WebGL. This property is automatically set to true when instancing a new material.
public bool needsUpdate
Résultat bool

opacity public_oe property

Float in the range of 0.0 - 1.0 indicating how transparent 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. Default is 1.0.
public double opacity
Résultat double

overdraw public_oe property

Amount of triangle expansion at draw time. This is a workaround for cases when gaps appear between triangles when using CanvasRenderer. 0.5 tends to give good results across browsers. Default is 0.
public double overdraw
Résultat double

polygonOffset public_oe property

Whether to use polygon offset. Default is false. This corresponds to the POLYGON_OFFSET_FILL WebGL feature.
public bool polygonOffset
Résultat bool

polygonOffsetFactor public_oe property

Sets the polygon offset factor. Default is 0.
public double polygonOffsetFactor
Résultat double

polygonOffsetUnits public_oe property

Sets the polygon offset units. Default is 0.
public double polygonOffsetUnits
Résultat double

shading public_oe property

public ShadingType shading
Résultat ShadingType

side public_oe property

Defines which of the face sides will be rendered - front, back or both. Default is THREE.FrontSide. Other options are THREE.BackSide and THREE.DoubleSide.
public SideType side
Résultat SideType

transparent public_oe property

Defines whether this material is transparent. This has an effect on rendering as transparent objects need special treatment and are rendered after non-transparent objects. For a working example of this behaviour, check the WebGLRenderer code. Default is false.
public bool transparent
Résultat bool

visible public_oe property

Defines whether this material is visible. Default is true.
public bool visible
Résultat bool

wireframe public_oe property

Whether to have depth test enabled when rendering this material. Default is true.
public bool wireframe
Résultat bool

wireframeLinewidth public_oe property

Line thickness for wireframe mode. Default is 1.0. Due to limitations in the ANGLE layer, on Windows platforms linewidth will always be 1 regardless of the set value.
public double wireframeLinewidth
Résultat double