Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

RDPipelineRasterizationState

继承: RefCounted < Object

管线栅格化状态(由 RenderingDevice 使用)。

描述

这个对象由 RenderingDevice 使用。

属性

PolygonCullMode

cull_mode

0

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

bool

enable_depth_clamp

false

PolygonFrontFace

front_face

0

float

line_width

1.0

int

patch_control_points

1

bool

wireframe

false


属性说明

PolygonCullMode cull_mode = 0

绘制多边形时的剔除模式,决定隐藏正面还是反面。


float depth_bias_clamp = 0.0

  • void set_depth_bias_clamp ( float value )

  • float get_depth_bias_clamp ( )

目前没有这个属性的描述。请帮我们贡献一个


float depth_bias_constant_factor = 0.0

  • void set_depth_bias_constant_factor ( float value )

  • float get_depth_bias_constant_factor ( )

目前没有这个属性的描述。请帮我们贡献一个


bool depth_bias_enabled = false

  • void set_depth_bias_enabled ( bool value )

  • bool get_depth_bias_enabled ( )

目前没有这个属性的描述。请帮我们贡献一个


float depth_bias_slope_factor = 0.0

  • void set_depth_bias_slope_factor ( float value )

  • float get_depth_bias_slope_factor ( )

目前没有这个属性的描述。请帮我们贡献一个


bool discard_primitives = false

  • void set_discard_primitives ( bool value )

  • bool get_discard_primitives ( )

如果为 true,则会在栅格化阶段前立即丢弃图元。


bool enable_depth_clamp = false

  • void set_enable_depth_clamp ( bool value )

  • bool get_enable_depth_clamp ( )

目前没有这个属性的描述。请帮我们贡献一个


PolygonFrontFace front_face = 0

要使用的缠绕顺序,决定三角形的哪个面是正面。


float line_width = 1.0

  • void set_line_width ( float value )

  • float get_line_width ( )

绘制线段时使用的线宽(单位为像素)。可能不是所有硬件都支持粗线段。


int patch_control_points = 1

  • void set_patch_control_points ( int value )

  • int get_patch_control_points ( )

启用曲面细分绘制面片时,使用的控制点的数量。值越高,质量越高,但是性能开销也越高。


bool wireframe = false

  • void set_wireframe ( bool value )

  • bool get_wireframe ( )

如果为 true,则会为三角形进行线框渲染,不进行平面或纹理渲染。