Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
RDPipelineRasterizationState¶
继承: RefCounted < Object
管线栅格化状态(由 RenderingDevice 使用)。
描述¶
这个对象由 RenderingDevice 使用。
属性¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
属性说明¶
PolygonCullMode cull_mode = 0
void set_cull_mode ( PolygonCullMode value )
PolygonCullMode get_cull_mode ( )
绘制多边形时的剔除模式,决定隐藏正面还是反面。
float depth_bias_clamp = 0.0
目前没有这个属性的描述。请帮我们贡献一个!
float depth_bias_constant_factor = 0.0
目前没有这个属性的描述。请帮我们贡献一个!
bool depth_bias_enabled = false
目前没有这个属性的描述。请帮我们贡献一个!
float depth_bias_slope_factor = 0.0
目前没有这个属性的描述。请帮我们贡献一个!
bool discard_primitives = false
如果为 true
,则会在栅格化阶段前立即丢弃图元。
bool enable_depth_clamp = false
目前没有这个属性的描述。请帮我们贡献一个!
PolygonFrontFace front_face = 0
void set_front_face ( PolygonFrontFace value )
PolygonFrontFace get_front_face ( )
要使用的缠绕顺序,决定三角形的哪个面是正面。
float line_width = 1.0
绘制线段时使用的线宽(单位为像素)。可能不是所有硬件都支持粗线段。
int patch_control_points = 1
启用曲面细分绘制面片时,使用的控制点的数量。值越高,质量越高,但是性能开销也越高。
bool wireframe = false
如果为 true
,则会为三角形进行线框渲染,不进行平面或纹理渲染。