C# Class THREE.Material

Show file Open project: guidovanhilst/SharpThreejs Class Usage Examples

Public Properties

Property 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 property

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

blendDst public property

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

blendEquation public property

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

blendSrc public 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
return BlendingSourceType

blending public 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
return BlendingType

color public property

Diffuse color of the material. Default is white.
public Color color
return Color

depthTest public property

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

depthWrite public 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
return bool

map public property

public Texture,THREE map
return Texture

needsUpdate public 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
return bool

opacity public 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
return double

overdraw public 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
return double

polygonOffset public property

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

polygonOffsetFactor public property

Sets the polygon offset factor. Default is 0.
public double polygonOffsetFactor
return double

polygonOffsetUnits public property

Sets the polygon offset units. Default is 0.
public double polygonOffsetUnits
return double

shading public property

public ShadingType shading
return ShadingType

side public 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
return SideType

transparent public 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
return bool

visible public property

Defines whether this material is visible. Default is true.
public bool visible
return bool

wireframe public property

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

wireframeLinewidth public 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
return double