0.2.0-dev Download ZIP
46 lines ·3.3 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="RDPipelineRasterizationState" inherits="RefCounted" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Pipeline rasterization state (used by [RenderingDevice]). |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | This object is used by [RenderingDevice]. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | </tutorials> |
| 11 | <members> |
| 12 | <member name="cull_mode" type="int" setter="set_cull_mode" getter="get_cull_mode" enum="RenderingDevice.PolygonCullMode" default="0"> |
| 13 | The cull mode to use when drawing polygons, which determines whether front faces or backfaces are hidden. |
| 14 | </member> |
| 15 | <member name="depth_bias_clamp" type="float" setter="set_depth_bias_clamp" getter="get_depth_bias_clamp" default="0.0"> |
| 16 | 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. |
| 17 | </member> |
| 18 | <member name="depth_bias_constant_factor" type="float" setter="set_depth_bias_constant_factor" getter="get_depth_bias_constant_factor" default="0.0"> |
| 19 | A constant offset added to each depth value. Applied after [member depth_bias_slope_factor]. |
| 20 | </member> |
| 21 | <member name="depth_bias_enabled" type="bool" setter="set_depth_bias_enabled" getter="get_depth_bias_enabled" default="false"> |
| 22 | If [code]true[/code], each generated depth value will by offset by some amount. The specific amount is generated per polygon based on the values of [member depth_bias_slope_factor] and [member depth_bias_constant_factor]. |
| 23 | </member> |
| 24 | <member name="depth_bias_slope_factor" type="float" setter="set_depth_bias_slope_factor" getter="get_depth_bias_slope_factor" default="0.0"> |
| 25 | A constant scale applied to the slope of each polygon's depth. Applied before [member depth_bias_constant_factor]. |
| 26 | </member> |
| 27 | <member name="discard_primitives" type="bool" setter="set_discard_primitives" getter="get_discard_primitives" default="false"> |
| 28 | If [code]true[/code], primitives are discarded immediately before the rasterization stage. |
| 29 | </member> |
| 30 | <member name="enable_depth_clamp" type="bool" setter="set_enable_depth_clamp" getter="get_enable_depth_clamp" default="false"> |
| 31 | If [code]true[/code], clamps depth values according to the minimum and maximum depth of the associated viewport. |
| 32 | </member> |
| 33 | <member name="front_face" type="int" setter="set_front_face" getter="get_front_face" enum="RenderingDevice.PolygonFrontFace" default="0"> |
| 34 | The winding order to use to determine which face of a triangle is considered its front face. |
| 35 | </member> |
| 36 | <member name="line_width" type="float" setter="set_line_width" getter="get_line_width" default="1.0"> |
| 37 | The line width to use when drawing lines (in pixels). Thick lines may not be supported on all hardware. |
| 38 | </member> |
| 39 | <member name="patch_control_points" type="int" setter="set_patch_control_points" getter="get_patch_control_points" default="1"> |
| 40 | 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. |
| 41 | </member> |
| 42 | <member name="wireframe" type="bool" setter="set_wireframe" getter="get_wireframe" default="false"> |
| 43 | If [code]true[/code], performs wireframe rendering for triangles instead of flat or textured rendering. |
| 44 | </member> |
| 45 | </members> |
| 46 | </class> |