Table of Contents

Class RDPipelineRasterizationState

Pipeline rasterization state (used by RenderingDevice).

Inheritance
RDPipelineRasterizationState

Remarks

This object is used by RenderingDevice.

Properties

cull_mode

The cull mode to use when drawing polygons, which determines whether front faces or backfaces are hidden.

var cull_mode : int = 0

Property Value

int

Remarks

  • void set_cull_mode(int value)
  • int get_cull_mode

depth_bias_clamp

A limit for how much each depth value can be offset. If negative, it serves as a minimum value, but if positive, it serves as a maximum value.

var depth_bias_clamp : float = 0.0

Property Value

float

Remarks

  • void set_depth_bias_clamp(float value)
  • float get_depth_bias_clamp

depth_bias_constant_factor

A constant offset added to each depth value. Applied after depth_bias_slope_factor.

var depth_bias_constant_factor : float = 0.0

Property Value

float

Remarks

  • void set_depth_bias_constant_factor(float value)
  • float get_depth_bias_constant_factor

depth_bias_enabled

If true, each generated depth value will by offset by some amount. The specific amount is generated per polygon based on the values of depth_bias_slope_factor and depth_bias_constant_factor.

var depth_bias_enabled : bool = false

Property Value

bool

Remarks

  • void set_depth_bias_enabled(bool value)
  • bool get_depth_bias_enabled

depth_bias_slope_factor

A constant scale applied to the slope of each polygons' depth. Applied before depth_bias_constant_factor.

var depth_bias_slope_factor : float = 0.0

Property Value

float

Remarks

  • void set_depth_bias_slope_factor(float value)
  • float get_depth_bias_slope_factor

discard_primitives

If true, primitives are discarded immediately before the rasterization stage.

var discard_primitives : bool = false

Property Value

bool

Remarks

  • void set_discard_primitives(bool value)
  • bool get_discard_primitives

enable_depth_clamp

If true, clamps depth values according to the minimum and maximum depth of the associated viewport.

var enable_depth_clamp : bool = false

Property Value

bool

Remarks

  • void set_enable_depth_clamp(bool value)
  • bool get_enable_depth_clamp

front_face

The winding order to use to determine which face of a triangle is considered its front face.

var front_face : int = 0

Property Value

int

Remarks

  • void set_front_face(int value)
  • int get_front_face

line_width

The line width to use when drawing lines (in pixels). Thick lines may not be supported on all hardware.

var line_width : float = 1.0

Property Value

float

Remarks

  • void set_line_width(float value)
  • float get_line_width

patch_control_points

The number of control points to use when drawing a patch with tessellation enabled. Higher values result in higher quality at the cost of performance.

var patch_control_points : int = 1

Property Value

int

Remarks

  • void set_patch_control_points(int value)
  • int get_patch_control_points

wireframe

If true, performs wireframe rendering for triangles instead of flat or textured rendering.

var wireframe : bool = false

Property Value

bool

Remarks

  • void set_wireframe(bool value)
  • bool get_wireframe