C# Класс THREE.Material

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Описание свойств

alphaTest публичное свойство

Sets the alpha value to be used when running an alpha test. Default is 0.
public double alphaTest
Результат double

blendDst публичное свойство

Blending destination. It's one of the blending mode constants defined in Three.js. Default is OneMinusSrcAlphaFactor.
public BlendingSourceType blendDst
Результат BlendingSourceType

blendEquation публичное свойство

Blending equation to use when applying blending. It's one of the constants defined in Three.js. Default is AddEquation.
public EquationType blendEquation
Результат EquationType

blendSrc публичное свойство

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
Результат BlendingSourceType

blending публичное свойство

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
Результат BlendingType

color публичное свойство

Diffuse color of the material. Default is white.
public Color color
Результат Color

depthTest публичное свойство

Whether to have depth test enabled when rendering this material. Default is true.
public bool depthTest
Результат bool

depthWrite публичное свойство

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
Результат bool

map публичное свойство

public Texture,THREE map
Результат Texture

needsUpdate публичное свойство

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
Результат bool

opacity публичное свойство

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
Результат double

overdraw публичное свойство

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
Результат double

polygonOffset публичное свойство

Whether to use polygon offset. Default is false. This corresponds to the POLYGON_OFFSET_FILL WebGL feature.
public bool polygonOffset
Результат bool

polygonOffsetFactor публичное свойство

Sets the polygon offset factor. Default is 0.
public double polygonOffsetFactor
Результат double

polygonOffsetUnits публичное свойство

Sets the polygon offset units. Default is 0.
public double polygonOffsetUnits
Результат double

shading публичное свойство

public ShadingType shading
Результат ShadingType

side публичное свойство

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
Результат SideType

transparent публичное свойство

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
Результат bool

visible публичное свойство

Defines whether this material is visible. Default is true.
public bool visible
Результат bool

wireframe публичное свойство

Whether to have depth test enabled when rendering this material. Default is true.
public bool wireframe
Результат bool

wireframeLinewidth публичное свойство

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
Результат double