C# 클래스 THREE.Material

파일 보기 프로젝트 열기: guidovanhilst/SharpThreejs 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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