2017-09-12 22:42:36 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2020-03-30 18:22:57 +02:00
<class name= "RenderingServer" inherits= "Object" version= "4.0" >
2017-09-12 22:42:36 +02:00
<brief_description >
Server for anything visible.
</brief_description>
<description >
2020-04-17 01:05:25 +02:00
Server for anything visible. The rendering server is the API backend for everything visible. The whole scene system mounts on it to display.
The rendering server is completely opaque, the internals are entirely implementation specific and cannot be accessed.
The rendering server can be used to bypass the scene system entirely.
2020-01-06 00:36:50 +01:00
Resources are created using the [code]*_create[/code] functions.
All objects are drawn to a viewport. You can use the [Viewport] attached to the [SceneTree] or you can create one yourself with [method viewport_create]. When using a custom scenario or canvas, the scenario or canvas needs to be attached to the viewport using [method viewport_set_scenario] or [method viewport_attach_canvas].
2020-05-04 16:55:01 +02:00
In 3D, all visual objects must be associated with a scenario. The scenario is a visual representation of the world. If accessing the rendering server from a running game, the scenario can be accessed from the scene tree from any [Node3D] node with [method Node3D.get_world_3d]. Otherwise, a scenario can be created with [method scenario_create].
2021-03-18 12:04:28 +01:00
Similarly, in 2D, a canvas is needed to draw all canvas items.
2020-01-06 00:36:50 +01:00
In 3D, all visible objects are comprised of a resource and an instance. A resource can be a mesh, a particle system, a light, or any other 3D object. In order to be visible resources must be attached to an instance using [method instance_set_base]. The instance must also be attached to the scenario using [method instance_set_scenario] in order to be visible.
In 2D, all visible objects are some form of canvas item. In order to be visible, a canvas item needs to be the child of a canvas attached to a viewport, or it needs to be the child of another canvas item that is eventually attached to the canvas.
2017-09-12 22:42:36 +02:00
</description>
<tutorials >
2020-08-05 14:43:40 +02:00
<link title= "Optimization using Servers" > https://docs.godotengine.org/en/latest/tutorials/optimization/using_servers.html</link>
2017-09-12 22:42:36 +02:00
</tutorials>
<methods >
2021-07-01 04:17:47 +02:00
<method name= "bake_render_uv2" >
<return type= "Image[]" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "base" type= "RID" >
</argument>
<argument index= "1" name= "material_overrides" type= "Array" >
</argument>
<argument index= "2" name= "image_size" type= "Vector2i" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<description >
</description>
</method>
<method name= "camera_create" >
<return type= "RID" >
</return>
<description >
Creates a camera and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]camera_*[/code] RenderingServer functions.
Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method.
</description>
</method>
<method name= "camera_effects_create" >
<return type= "RID" >
</return>
<description >
</description>
</method>
<method name= "camera_effects_set_custom_exposure" >
<return type= "void" >
</return>
<argument index= "0" name= "camera_effects" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enable" type= "bool" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "2" name= "exposure" type= "float" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "camera_effects_set_dof_blur" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "camera_effects" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "far_enable" type= "bool" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "2" name= "far_distance" type= "float" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "3" name= "far_transition" type= "float" >
</argument>
<argument index= "4" name= "near_enable" type= "bool" >
</argument>
<argument index= "5" name= "near_distance" type= "float" >
</argument>
<argument index= "6" name= "near_transition" type= "float" >
</argument>
<argument index= "7" name= "amount" type= "float" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "camera_effects_set_dof_blur_bokeh_shape" >
<return type= "void" >
</return>
<argument index= "0" name= "shape" type= "int" enum= "RenderingServer.DOFBokehShape" >
</argument>
<description >
</description>
</method>
<method name= "camera_effects_set_dof_blur_quality" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "quality" type= "int" enum= "RenderingServer.DOFBlurQuality" >
</argument>
<argument index= "1" name= "use_jitter" type= "bool" >
</argument>
<description >
</description>
</method>
<method name= "camera_set_camera_effects" >
<return type= "void" >
</return>
<argument index= "0" name= "camera" type= "RID" >
</argument>
<argument index= "1" name= "effects" type= "RID" >
</argument>
2018-02-19 10:47:16 +01:00
<description >
</description>
</method>
<method name= "camera_set_cull_mask" >
<return type= "void" >
</return>
<argument index= "0" name= "camera" type= "RID" >
</argument>
<argument index= "1" name= "layers" type= "int" >
</argument>
<description >
2020-03-30 18:22:57 +02:00
Sets the cull mask associated with this camera. The cull mask describes which 3D layers are rendered by this camera. Equivalent to [member Camera3D.cull_mask].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "camera_set_environment" >
<return type= "void" >
</return>
<argument index= "0" name= "camera" type= "RID" >
</argument>
<argument index= "1" name= "env" type= "RID" >
</argument>
<description >
2020-03-30 18:22:57 +02:00
Sets the environment used by this camera. Equivalent to [member Camera3D.environment].
2018-02-19 10:47:16 +01:00
</description>
</method>
2019-04-23 21:39:09 +02:00
<method name= "camera_set_frustum" >
<return type= "void" >
</return>
<argument index= "0" name= "camera" type= "RID" >
</argument>
<argument index= "1" name= "size" type= "float" >
</argument>
<argument index= "2" name= "offset" type= "Vector2" >
</argument>
<argument index= "3" name= "z_near" type= "float" >
</argument>
<argument index= "4" name= "z_far" type= "float" >
</argument>
<description >
2019-12-15 01:38:19 +01:00
Sets camera to use frustum projection. This mode allows adjusting the [code]offset[/code] argument to create "tilted frustum" effects.
2019-04-23 21:39:09 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "camera_set_orthogonal" >
<return type= "void" >
</return>
<argument index= "0" name= "camera" type= "RID" >
</argument>
<argument index= "1" name= "size" type= "float" >
</argument>
<argument index= "2" name= "z_near" type= "float" >
</argument>
<argument index= "3" name= "z_far" type= "float" >
</argument>
<description >
2019-12-15 01:38:19 +01:00
Sets camera to use orthogonal projection, also known as orthographic projection. Objects remain the same size on the screen no matter how far away they are.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "camera_set_perspective" >
<return type= "void" >
</return>
<argument index= "0" name= "camera" type= "RID" >
</argument>
<argument index= "1" name= "fovy_degrees" type= "float" >
</argument>
<argument index= "2" name= "z_near" type= "float" >
</argument>
<argument index= "3" name= "z_far" type= "float" >
</argument>
<description >
2019-12-15 01:38:19 +01:00
Sets camera to use perspective projection. Objects on the screen becomes smaller when they are far away.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "camera_set_transform" >
<return type= "void" >
</return>
<argument index= "0" name= "camera" type= "RID" >
</argument>
2020-05-03 10:27:36 +02:00
<argument index= "1" name= "transform" type= "Transform3D" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2020-05-03 10:27:36 +02:00
Sets [Transform3D] of camera.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "camera_set_use_vertical_aspect" >
<return type= "void" >
</return>
<argument index= "0" name= "camera" type= "RID" >
</argument>
<argument index= "1" name= "enable" type= "bool" >
</argument>
<description >
2020-03-30 18:22:57 +02:00
If [code]true[/code], preserves the horizontal aspect ratio which is equivalent to [constant Camera3D.KEEP_WIDTH]. If [code]false[/code], preserves the vertical aspect ratio which is equivalent to [constant Camera3D.KEEP_HEIGHT].
2018-02-19 10:47:16 +01:00
</description>
</method>
2017-10-21 12:02:08 +02:00
<method name= "canvas_create" >
<return type= "RID" >
</return>
<description >
2020-03-30 18:22:57 +02:00
Creates a canvas and returns the assigned [RID]. It can be accessed with the RID that is returned. This RID will be used in all [code]canvas_*[/code] RenderingServer functions.
Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_add_circle" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
<argument index= "0" name= "item" type= "RID" >
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "pos" type= "Vector2" >
</argument>
<argument index= "2" name= "radius" type= "float" >
</argument>
<argument index= "3" name= "color" type= "Color" >
</argument>
2017-10-21 12:02:08 +02:00
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_add_clip_ignore" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
<argument index= "0" name= "item" type= "RID" >
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "ignore" type= "bool" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_add_line" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
<argument index= "0" name= "item" type= "RID" >
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "from" type= "Vector2" >
</argument>
<argument index= "2" name= "to" type= "Vector2" >
</argument>
<argument index= "3" name= "color" type= "Color" >
</argument>
<argument index= "4" name= "width" type= "float" default= "1.0" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_add_mesh" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
<argument index= "0" name= "item" type= "RID" >
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "mesh" type= "RID" >
</argument>
<argument index= "2" name= "transform" type= "Transform2D" default= "Transform2D(1, 0, 0, 1, 0, 0)" >
</argument>
<argument index= "3" name= "modulate" type= "Color" default= "Color(1, 1, 1, 1)" >
</argument>
<argument index= "4" name= "texture" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_add_multimesh" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
<argument index= "0" name= "item" type= "RID" >
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "mesh" type= "RID" >
</argument>
<argument index= "2" name= "texture" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_add_nine_patch" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
<argument index= "0" name= "item" type= "RID" >
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "rect" type= "Rect2" >
</argument>
<argument index= "2" name= "source" type= "Rect2" >
</argument>
<argument index= "3" name= "texture" type= "RID" >
</argument>
<argument index= "4" name= "topleft" type= "Vector2" >
</argument>
<argument index= "5" name= "bottomright" type= "Vector2" >
</argument>
<argument index= "6" name= "x_axis_mode" type= "int" enum= "RenderingServer.NinePatchAxisMode" default= "0" >
</argument>
<argument index= "7" name= "y_axis_mode" type= "int" enum= "RenderingServer.NinePatchAxisMode" default= "0" >
</argument>
<argument index= "8" name= "draw_center" type= "bool" default= "true" >
</argument>
<argument index= "9" name= "modulate" type= "Color" default= "Color(1, 1, 1, 1)" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_add_particles" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
<argument index= "0" name= "item" type= "RID" >
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "particles" type= "RID" >
</argument>
<argument index= "2" name= "texture" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_add_polygon" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "points" type= "PackedVector2Array" >
</argument>
<argument index= "2" name= "colors" type= "PackedColorArray" >
</argument>
<argument index= "3" name= "uvs" type= "PackedVector2Array" default= "PackedVector2Array()" >
</argument>
<argument index= "4" name= "texture" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_add_polyline" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "points" type= "PackedVector2Array" >
</argument>
<argument index= "2" name= "colors" type= "PackedColorArray" >
</argument>
<argument index= "3" name= "width" type= "float" default= "1.0" >
</argument>
<argument index= "4" name= "antialiased" type= "bool" default= "false" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_add_primitive" >
<return type= "void" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
</argument>
<argument index= "1" name= "points" type= "PackedVector2Array" >
</argument>
<argument index= "2" name= "colors" type= "PackedColorArray" >
</argument>
<argument index= "3" name= "uvs" type= "PackedVector2Array" >
</argument>
<argument index= "4" name= "texture" type= "RID" >
</argument>
<argument index= "5" name= "width" type= "float" default= "1.0" >
</argument>
2017-10-21 12:02:08 +02:00
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_add_rect" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "rect" type= "Rect2" >
</argument>
<argument index= "2" name= "color" type= "Color" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_add_set_transform" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "transform" type= "Transform2D" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_add_texture_rect" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "rect" type= "Rect2" >
</argument>
<argument index= "2" name= "texture" type= "RID" >
</argument>
<argument index= "3" name= "tile" type= "bool" default= "false" >
</argument>
<argument index= "4" name= "modulate" type= "Color" default= "Color(1, 1, 1, 1)" >
</argument>
<argument index= "5" name= "transpose" type= "bool" default= "false" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_add_texture_rect_region" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "rect" type= "Rect2" >
</argument>
<argument index= "2" name= "texture" type= "RID" >
</argument>
<argument index= "3" name= "src_rect" type= "Rect2" >
</argument>
<argument index= "4" name= "modulate" type= "Color" default= "Color(1, 1, 1, 1)" >
</argument>
<argument index= "5" name= "transpose" type= "bool" default= "false" >
</argument>
<argument index= "6" name= "clip_uv" type= "bool" default= "true" >
2019-11-24 11:00:02 +01:00
</argument>
2017-10-21 12:02:08 +02:00
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_add_triangle_array" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2020-02-12 09:59:06 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "indices" type= "PackedInt32Array" >
</argument>
<argument index= "2" name= "points" type= "PackedVector2Array" >
</argument>
<argument index= "3" name= "colors" type= "PackedColorArray" >
</argument>
<argument index= "4" name= "uvs" type= "PackedVector2Array" default= "PackedVector2Array()" >
</argument>
<argument index= "5" name= "bones" type= "PackedInt32Array" default= "PackedInt32Array()" >
</argument>
<argument index= "6" name= "weights" type= "PackedFloat32Array" default= "PackedFloat32Array()" >
</argument>
<argument index= "7" name= "texture" type= "RID" >
</argument>
<argument index= "8" name= "count" type= "int" default= "-1" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_clear" >
2020-02-12 09:59:06 +01:00
<return type= "void" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2020-02-12 09:59:06 +01:00
</argument>
2017-10-21 12:02:08 +02:00
<description >
2021-07-01 04:17:47 +02:00
Clears the [CanvasItem] and removes all commands in it.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_create" >
<return type= "RID" >
2017-10-21 12:02:08 +02:00
</return>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_set_canvas_group_mode" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "mode" type= "int" enum= "RenderingServer.CanvasGroupMode" >
</argument>
<argument index= "2" name= "clear_margin" type= "float" default= "5.0" >
</argument>
<argument index= "3" name= "fit_empty" type= "bool" default= "false" >
</argument>
<argument index= "4" name= "fit_margin" type= "float" default= "0.0" >
</argument>
<argument index= "5" name= "blur_mipmaps" type= "bool" default= "false" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_set_clip" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "clip" type= "bool" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_set_copy_to_backbuffer" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enabled" type= "bool" >
</argument>
<argument index= "2" name= "rect" type= "Rect2" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the [CanvasItem] to copy a rect to the backbuffer.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_set_custom_rect" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "use_custom_rect" type= "bool" >
2020-02-12 09:59:06 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "2" name= "rect" type= "Rect2" default= "Rect2(0, 0, 0, 0)" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_set_default_texture_filter" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "filter" type= "int" enum= "RenderingServer.CanvasItemTextureFilter" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_set_default_texture_repeat" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "repeat" type= "int" enum= "RenderingServer.CanvasItemTextureRepeat" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_set_distance_field_mode" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2020-02-12 09:59:06 +01:00
<argument index= "1" name= "enabled" type= "bool" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_set_draw_behind_parent" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enabled" type= "bool" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_set_draw_index" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "index" type= "int" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the index for the [CanvasItem].
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_set_light_mask" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "mask" type= "int" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_set_material" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "material" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets a new material to the [CanvasItem].
2020-11-04 15:38:26 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_set_modulate" >
2020-11-04 15:38:26 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2020-11-04 15:38:26 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "color" type= "Color" >
2020-11-04 15:38:26 +01:00
</argument>
<description >
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_set_parent" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "parent" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_set_self_modulate" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "color" type= "Color" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<description >
</description>
</method>
<method name= "canvas_item_set_sort_children_by_y" >
<return type= "void" >
</return>
<argument index= "0" name= "item" type= "RID" >
</argument>
<argument index= "1" name= "enabled" type= "bool" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_set_transform" >
<return type= "void" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
</argument>
<argument index= "1" name= "transform" type= "Transform2D" >
</argument>
2017-10-21 12:02:08 +02:00
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_set_use_parent_material" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enabled" type= "bool" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets if the [CanvasItem] uses its parent's material.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_set_visibility_notifier" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enable" type= "bool" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "2" name= "area" type= "Rect2" >
</argument>
<argument index= "3" name= "enter_callable" type= "Callable" >
</argument>
<argument index= "4" name= "exit_callable" type= "Callable" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_set_visible" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "visible" type= "bool" >
2020-02-12 09:59:06 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<description >
</description>
</method>
<method name= "canvas_item_set_z_as_relative_to_parent" >
<return type= "void" >
</return>
<argument index= "0" name= "item" type= "RID" >
</argument>
<argument index= "1" name= "enabled" type= "bool" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
If this is enabled, the Z index of the parent will be added to the children's Z index.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_item_set_z_index" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "item" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "z_index" type= "int" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the [CanvasItem]'s Z index, i.e. its draw order (lower indexes are drawn first).
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_attach_to_canvas" >
<return type= "void" >
2020-10-09 15:04:15 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "canvas" type= "RID" >
</argument>
2020-10-09 15:04:15 +02:00
<description >
2021-07-01 04:17:47 +02:00
Attaches the canvas light to the canvas. Removes it from its previous canvas.
2020-10-09 15:04:15 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_create" >
2020-02-12 09:59:06 +01:00
<return type= "RID" >
2017-10-21 12:02:08 +02:00
</return>
<description >
2021-07-01 04:17:47 +02:00
Creates a canvas light and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]canvas_light_*[/code] RenderingServer functions.
2020-03-30 18:22:57 +02:00
Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_occluder_attach_to_canvas" >
<return type= "void" >
</return>
<argument index= "0" name= "occluder" type= "RID" >
</argument>
<argument index= "1" name= "canvas" type= "RID" >
</argument>
<description >
Attaches a light occluder to the canvas. Removes it from its previous canvas.
</description>
</method>
<method name= "canvas_light_occluder_create" >
2020-02-12 09:59:06 +01:00
<return type= "RID" >
2017-10-21 12:02:08 +02:00
</return>
<description >
2021-07-01 04:17:47 +02:00
Creates a light occluder and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]canvas_light_ocluder_*[/code] RenderingServer functions.
2020-03-30 18:22:57 +02:00
Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_occluder_set_as_sdf_collision" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "occluder" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2020-02-12 09:59:06 +01:00
<argument index= "1" name= "enable" type= "bool" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_occluder_set_enabled" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "occluder" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enabled" type= "bool" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Enables or disables light occluder.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_occluder_set_light_mask" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "occluder" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "mask" type= "int" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
The light mask. See [LightOccluder2D] for more information on light masks.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_occluder_set_polygon" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "occluder" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "polygon" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets a light occluder's polygon.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_occluder_set_transform" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "occluder" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "transform" type= "Transform2D" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets a light occluder's [Transform2D].
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_set_color" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "light" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "color" type= "Color" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the color for a light.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_set_enabled" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "light" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enabled" type= "bool" >
2020-11-04 15:38:26 +01:00
</argument>
2018-02-19 10:47:16 +01:00
<description >
2021-07-01 04:17:47 +02:00
Enables or disables a canvas light.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_set_energy" >
2020-02-12 09:59:06 +01:00
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "light" type= "RID" >
2020-02-12 09:59:06 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "energy" type= "float" >
2020-02-12 09:59:06 +01:00
</argument>
2018-02-19 10:47:16 +01:00
<description >
2021-07-01 04:17:47 +02:00
Sets a canvas light's energy.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_set_height" >
2020-02-12 09:59:06 +01:00
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "light" type= "RID" >
2020-02-12 09:59:06 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "height" type= "float" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets a canvas light's height.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_set_item_cull_mask" >
2020-02-12 09:59:06 +01:00
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "light" type= "RID" >
2020-02-12 09:59:06 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "mask" type= "int" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
The light mask. See [LightOccluder2D] for more information on light masks.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_set_item_shadow_cull_mask" >
2020-02-12 09:59:06 +01:00
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "light" type= "RID" >
2020-02-12 09:59:06 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "mask" type= "int" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
The binary mask used to determine which layers this canvas light's shadows affects. See [LightOccluder2D] for more information on light masks.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_set_layer_range" >
2020-02-16 18:55:40 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "light" type= "RID" >
2020-02-16 18:55:40 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "min_layer" type= "int" >
2020-02-16 18:55:40 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "2" name= "max_layer" type= "int" >
2020-10-19 00:27:51 +02:00
</argument>
2020-02-16 18:55:40 +01:00
<description >
2021-07-01 04:17:47 +02:00
The layer range that gets rendered with this light.
2020-02-16 18:55:40 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_set_mode" >
2020-02-12 09:59:06 +01:00
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "light" type= "RID" >
2020-02-12 09:59:06 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "mode" type= "int" enum= "RenderingServer.CanvasLightMode" >
2020-02-12 09:59:06 +01:00
</argument>
2018-02-19 10:47:16 +01:00
<description >
2021-07-01 04:17:47 +02:00
The mode of the light, see [enum CanvasLightMode] constants.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_set_shadow_color" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "light" type= "RID" >
2020-02-12 09:59:06 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "color" type= "Color" >
2020-02-12 09:59:06 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<description >
Sets the color of the canvas light's shadow.
</description>
</method>
<method name= "canvas_light_set_shadow_enabled" >
<return type= "void" >
</return>
<argument index= "0" name= "light" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enabled" type= "bool" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Enables or disables the canvas light's shadow.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_set_shadow_filter" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "filter" type= "int" enum= "RenderingServer.CanvasLightShadowFilter" >
</argument>
2018-02-19 10:47:16 +01:00
<description >
2021-07-01 04:17:47 +02:00
Sets the canvas light's shadow's filter, see [enum CanvasLightShadowFilter] constants.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_set_shadow_smooth" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "light" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "smooth" type= "float" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Smoothens the shadow. The lower, the smoother.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_set_texture" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "texture" type= "RID" >
</argument>
2018-02-19 10:47:16 +01:00
<description >
2021-07-01 04:17:47 +02:00
Sets the texture to be used by a [PointLight2D]. Equivalent to [member PointLight2D.texture].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_set_texture_offset" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "offset" type= "Vector2" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the offset of a [PointLight2D]'s texture. Equivalent to [member PointLight2D.offset].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_set_texture_scale" >
<return type= "void" >
2021-01-04 14:33:44 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "scale" type= "float" >
</argument>
2021-01-04 14:33:44 +01:00
<description >
2021-07-01 04:17:47 +02:00
Sets the scale factor of a [PointLight2D]'s texture. Equivalent to [member PointLight2D.texture_scale].
2021-01-04 14:33:44 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_set_transform" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "transform" type= "Transform2D" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the canvas light's [Transform2D].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_light_set_z_range" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "min_z" type= "int" >
</argument>
<argument index= "2" name= "max_z" type= "int" >
</argument>
2018-02-19 10:47:16 +01:00
<description >
2021-07-01 04:17:47 +02:00
Sets the Z range of objects that will be affected by this light. Equivalent to [member Light2D.range_z_min] and [member Light2D.range_z_max].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_occluder_polygon_create" >
2020-02-12 09:59:06 +01:00
<return type= "RID" >
2018-02-19 10:47:16 +01:00
</return>
<description >
2021-07-01 04:17:47 +02:00
Creates a new light occluder polygon and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]canvas_occluder_polygon_*[/code] RenderingServer functions.
Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_occluder_polygon_set_cull_mode" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "occluder_polygon" type= "RID" >
</argument>
<argument index= "1" name= "mode" type= "int" enum= "RenderingServer.CanvasOccluderPolygonCullMode" >
</argument>
2018-02-19 10:47:16 +01:00
<description >
2021-07-01 04:17:47 +02:00
Sets an occluder polygons cull mode. See [enum CanvasOccluderPolygonCullMode] constants.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_occluder_polygon_set_shape" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "occluder_polygon" type= "RID" >
</argument>
<argument index= "1" name= "shape" type= "PackedVector2Array" >
</argument>
<argument index= "2" name= "closed" type= "bool" >
</argument>
2018-02-19 10:47:16 +01:00
<description >
2021-07-01 04:17:47 +02:00
Sets the shape of the occluder polygon.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_set_disable_scale" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "disable" type= "bool" >
</argument>
2018-02-19 10:47:16 +01:00
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_set_item_mirroring" >
2020-04-20 11:48:00 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "canvas" type= "RID" >
2020-04-20 11:48:00 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "item" type= "RID" >
2020-04-20 11:48:00 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "2" name= "mirroring" type= "Vector2" >
2020-04-20 11:48:00 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
A copy of the canvas item will be drawn with a local offset of the mirroring [Vector2].
2020-04-20 11:48:00 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_set_modulate" >
<return type= "void" >
2020-04-20 11:48:00 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "canvas" type= "RID" >
</argument>
<argument index= "1" name= "color" type= "Color" >
2020-04-20 11:48:00 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Modulates all colors in the given canvas.
2020-04-20 11:48:00 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_set_shadow_texture_size" >
<return type= "void" >
2020-04-20 11:48:00 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "size" type= "int" >
</argument>
2020-04-20 11:48:00 +02:00
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_texture_create" >
<return type= "RID" >
2020-04-20 11:48:00 +02:00
</return>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_texture_set_channel" >
2020-04-20 11:48:00 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "canvas_texture" type= "RID" >
</argument>
<argument index= "1" name= "channel" type= "int" enum= "RenderingServer.CanvasTextureChannel" >
</argument>
<argument index= "2" name= "texture" type= "RID" >
2020-04-20 11:48:00 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_texture_set_shading_parameters" >
2020-04-20 11:48:00 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "canvas_texture" type= "RID" >
2020-04-20 11:48:00 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "base_color" type= "Color" >
</argument>
<argument index= "2" name= "shininess" type= "float" >
2020-04-20 11:48:00 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_texture_set_texture_filter" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "canvas_texture" type= "RID" >
</argument>
<argument index= "1" name= "filter" type= "int" enum= "RenderingServer.CanvasItemTextureFilter" >
</argument>
2018-02-19 10:47:16 +01:00
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "canvas_texture_set_texture_repeat" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "canvas_texture" type= "RID" >
</argument>
<argument index= "1" name= "repeat" type= "int" enum= "RenderingServer.CanvasItemTextureRepeat" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "create_local_rendering_device" qualifiers= "const" >
<return type= "RenderingDevice" >
2018-02-19 10:47:16 +01:00
</return>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "decal_create" >
<return type= "RID" >
2018-02-19 10:47:16 +01:00
</return>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "decal_set_albedo_mix" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "decal" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "albedo_mix" type= "float" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "decal_set_cull_mask" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "decal" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "mask" type= "int" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "decal_set_distance_fade" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "decal" type= "RID" >
</argument>
<argument index= "1" name= "enabled" type= "bool" >
</argument>
<argument index= "2" name= "begin" type= "float" >
</argument>
<argument index= "3" name= "length" type= "float" >
</argument>
2018-02-19 10:47:16 +01:00
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "decal_set_emission_energy" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "decal" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "energy" type= "float" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "decal_set_extents" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "decal" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "extents" type= "Vector3" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "decal_set_fade" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "decal" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "above" type= "float" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "2" name= "below" type= "float" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "decal_set_modulate" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "decal" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "color" type= "Color" >
</argument>
<description >
</description>
</method>
<method name= "decal_set_normal_fade" >
<return type= "void" >
</return>
<argument index= "0" name= "decal" type= "RID" >
</argument>
<argument index= "1" name= "fade" type= "float" >
</argument>
<description >
</description>
</method>
<method name= "decal_set_texture" >
<return type= "void" >
</return>
<argument index= "0" name= "decal" type= "RID" >
</argument>
<argument index= "1" name= "type" type= "int" enum= "RenderingServer.DecalTexture" >
</argument>
<argument index= "2" name= "texture" type= "RID" >
</argument>
<description >
</description>
</method>
<method name= "directional_light_create" >
<return type= "RID" >
</return>
<description >
Creates a directional light and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID can be used in most [code]light_*[/code] RenderingServer functions.
Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method.
To place in a scene, attach this directional light to an instance using [method instance_set_base] using the returned RID.
</description>
</method>
<method name= "directional_shadow_atlas_set_size" >
<return type= "void" >
</return>
<argument index= "0" name= "size" type= "int" >
</argument>
<argument index= "1" name= "is_16bits" type= "bool" >
</argument>
<description >
</description>
</method>
<method name= "directional_shadow_quality_set" >
<return type= "void" >
</return>
<argument index= "0" name= "quality" type= "int" enum= "RenderingServer.ShadowQuality" >
</argument>
<description >
</description>
</method>
<method name= "environment_bake_panorama" >
<return type= "Image" >
</return>
<argument index= "0" name= "environment" type= "RID" >
</argument>
<argument index= "1" name= "bake_irradiance" type= "bool" >
</argument>
<argument index= "2" name= "size" type= "Vector2i" >
</argument>
<description >
</description>
</method>
<method name= "environment_create" >
<return type= "RID" >
</return>
<description >
Creates an environment and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]environment_*[/code] RenderingServer functions.
Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method.
</description>
</method>
<method name= "environment_glow_set_use_bicubic_upscale" >
<return type= "void" >
</return>
<argument index= "0" name= "enable" type= "bool" >
</argument>
<description >
</description>
</method>
<method name= "environment_glow_set_use_high_quality" >
<return type= "void" >
</return>
<argument index= "0" name= "enable" type= "bool" >
</argument>
<description >
</description>
</method>
<method name= "environment_set_adjustment" >
<return type= "void" >
</return>
<argument index= "0" name= "env" type= "RID" >
</argument>
<argument index= "1" name= "enable" type= "bool" >
</argument>
<argument index= "2" name= "brightness" type= "float" >
</argument>
<argument index= "3" name= "contrast" type= "float" >
</argument>
<argument index= "4" name= "saturation" type= "float" >
</argument>
<argument index= "5" name= "use_1d_color_correction" type= "bool" >
</argument>
<argument index= "6" name= "color_correction" type= "RID" >
</argument>
<description >
Sets the values to be used with the "Adjustment" post-process effect. See [Environment] for more details.
</description>
</method>
<method name= "environment_set_ambient_light" >
<return type= "void" >
</return>
<argument index= "0" name= "env" type= "RID" >
</argument>
<argument index= "1" name= "color" type= "Color" >
</argument>
<argument index= "2" name= "ambient" type= "int" enum= "RenderingServer.EnvironmentAmbientSource" default= "0" >
</argument>
<argument index= "3" name= "energy" type= "float" default= "1.0" >
</argument>
<argument index= "4" name= "sky_contibution" type= "float" default= "0.0" >
</argument>
<argument index= "5" name= "reflection_source" type= "int" enum= "RenderingServer.EnvironmentReflectionSource" default= "0" >
</argument>
<argument index= "6" name= "ao_color" type= "Color" default= "Color(0, 0, 0, 1)" >
</argument>
<description >
</description>
</method>
<method name= "environment_set_background" >
<return type= "void" >
</return>
<argument index= "0" name= "env" type= "RID" >
</argument>
<argument index= "1" name= "bg" type= "int" enum= "RenderingServer.EnvironmentBG" >
</argument>
<description >
Sets the [i]BGMode[/i] of the environment. Equivalent to [member Environment.background_mode].
</description>
</method>
<method name= "environment_set_bg_color" >
<return type= "void" >
</return>
<argument index= "0" name= "env" type= "RID" >
</argument>
<argument index= "1" name= "color" type= "Color" >
</argument>
<description >
Color displayed for clear areas of the scene (if using Custom color or Color+Sky background modes).
</description>
</method>
<method name= "environment_set_bg_energy" >
<return type= "void" >
</return>
<argument index= "0" name= "env" type= "RID" >
</argument>
<argument index= "1" name= "energy" type= "float" >
</argument>
<description >
Sets the intensity of the background color.
</description>
</method>
<method name= "environment_set_canvas_max_layer" >
<return type= "void" >
</return>
<argument index= "0" name= "env" type= "RID" >
</argument>
<argument index= "1" name= "max_layer" type= "int" >
</argument>
<description >
Sets the maximum layer to use if using Canvas background mode.
</description>
</method>
<method name= "environment_set_fog" >
<return type= "void" >
</return>
<argument index= "0" name= "env" type= "RID" >
</argument>
<argument index= "1" name= "enable" type= "bool" >
</argument>
<argument index= "2" name= "light_color" type= "Color" >
</argument>
<argument index= "3" name= "light_energy" type= "float" >
</argument>
<argument index= "4" name= "sun_scatter" type= "float" >
</argument>
<argument index= "5" name= "density" type= "float" >
</argument>
<argument index= "6" name= "height" type= "float" >
</argument>
<argument index= "7" name= "height_density" type= "float" >
</argument>
<argument index= "8" name= "aerial_perspective" type= "float" >
</argument>
<description >
</description>
</method>
<method name= "environment_set_glow" >
<return type= "void" >
</return>
<argument index= "0" name= "env" type= "RID" >
</argument>
<argument index= "1" name= "enable" type= "bool" >
</argument>
<argument index= "2" name= "levels" type= "PackedFloat32Array" >
</argument>
<argument index= "3" name= "intensity" type= "float" >
</argument>
<argument index= "4" name= "strength" type= "float" >
</argument>
<argument index= "5" name= "mix" type= "float" >
</argument>
<argument index= "6" name= "bloom_threshold" type= "float" >
</argument>
<argument index= "7" name= "blend_mode" type= "int" enum= "RenderingServer.EnvironmentGlowBlendMode" >
</argument>
<argument index= "8" name= "hdr_bleed_threshold" type= "float" >
</argument>
<argument index= "9" name= "hdr_bleed_scale" type= "float" >
</argument>
<argument index= "10" name= "hdr_luminance_cap" type= "float" >
</argument>
<description >
</description>
</method>
<method name= "environment_set_sdfgi" >
<return type= "void" >
</return>
<argument index= "0" name= "env" type= "RID" >
</argument>
<argument index= "1" name= "enable" type= "bool" >
</argument>
<argument index= "2" name= "cascades" type= "int" enum= "RenderingServer.EnvironmentSDFGICascades" >
</argument>
<argument index= "3" name= "min_cell_size" type= "float" >
</argument>
<argument index= "4" name= "y_scale" type= "int" enum= "RenderingServer.EnvironmentSDFGIYScale" >
</argument>
<argument index= "5" name= "use_occlusion" type= "bool" >
</argument>
<argument index= "6" name= "bounce_feedback" type= "float" >
</argument>
<argument index= "7" name= "read_sky" type= "bool" >
</argument>
<argument index= "8" name= "energy" type= "float" >
</argument>
<argument index= "9" name= "normal_bias" type= "float" >
</argument>
<argument index= "10" name= "probe_bias" type= "float" >
</argument>
<description >
</description>
</method>
<method name= "environment_set_sdfgi_frames_to_converge" >
<return type= "void" >
</return>
<argument index= "0" name= "frames" type= "int" enum= "RenderingServer.EnvironmentSDFGIFramesToConverge" >
</argument>
<description >
</description>
</method>
<method name= "environment_set_sdfgi_frames_to_update_light" >
<return type= "void" >
</return>
<argument index= "0" name= "frames" type= "int" enum= "RenderingServer.EnvironmentSDFGIFramesToUpdateLight" >
</argument>
<description >
</description>
</method>
<method name= "environment_set_sdfgi_ray_count" >
<return type= "void" >
</return>
<argument index= "0" name= "ray_count" type= "int" enum= "RenderingServer.EnvironmentSDFGIRayCount" >
</argument>
<description >
</description>
</method>
<method name= "environment_set_sky" >
<return type= "void" >
</return>
<argument index= "0" name= "env" type= "RID" >
</argument>
<argument index= "1" name= "sky" type= "RID" >
</argument>
<description >
Sets the [Sky] to be used as the environment's background when using [i]BGMode[/i] sky. Equivalent to [member Environment.sky].
</description>
</method>
<method name= "environment_set_sky_custom_fov" >
<return type= "void" >
</return>
<argument index= "0" name= "env" type= "RID" >
</argument>
<argument index= "1" name= "scale" type= "float" >
</argument>
<description >
Sets a custom field of view for the background [Sky]. Equivalent to [member Environment.sky_custom_fov].
</description>
</method>
<method name= "environment_set_sky_orientation" >
<return type= "void" >
</return>
<argument index= "0" name= "env" type= "RID" >
</argument>
<argument index= "1" name= "orientation" type= "Basis" >
</argument>
<description >
Sets the rotation of the background [Sky] expressed as a [Basis]. Equivalent to [member Environment.sky_rotation], where the rotation vector is used to construct the [Basis].
</description>
</method>
<method name= "environment_set_ssao" >
<return type= "void" >
</return>
<argument index= "0" name= "env" type= "RID" >
</argument>
<argument index= "1" name= "enable" type= "bool" >
</argument>
<argument index= "2" name= "radius" type= "float" >
</argument>
<argument index= "3" name= "intensity" type= "float" >
</argument>
<argument index= "4" name= "power" type= "float" >
</argument>
<argument index= "5" name= "detail" type= "float" >
</argument>
<argument index= "6" name= "horizon" type= "float" >
</argument>
<argument index= "7" name= "sharpness" type= "float" >
</argument>
<argument index= "8" name= "light_affect" type= "float" >
</argument>
<argument index= "9" name= "ao_channel_affect" type= "float" >
</argument>
<description >
Sets the variables to be used with the "screen space ambient occlusion" post-process effect. See [Environment] for more details.
</description>
</method>
<method name= "environment_set_ssao_quality" >
<return type= "void" >
</return>
<argument index= "0" name= "quality" type= "int" enum= "RenderingServer.EnvironmentSSAOQuality" >
</argument>
<argument index= "1" name= "half_size" type= "bool" >
</argument>
<argument index= "2" name= "adaptive_target" type= "float" >
</argument>
<argument index= "3" name= "blur_passes" type= "int" >
</argument>
<argument index= "4" name= "fadeout_from" type= "float" >
</argument>
<argument index= "5" name= "fadeout_to" type= "float" >
</argument>
<description >
</description>
</method>
<method name= "environment_set_ssr" >
<return type= "void" >
</return>
<argument index= "0" name= "env" type= "RID" >
</argument>
<argument index= "1" name= "enable" type= "bool" >
</argument>
<argument index= "2" name= "max_steps" type= "int" >
</argument>
<argument index= "3" name= "fade_in" type= "float" >
</argument>
<argument index= "4" name= "fade_out" type= "float" >
</argument>
<argument index= "5" name= "depth_tolerance" type= "float" >
</argument>
<description >
Sets the variables to be used with the "screen space reflections" post-process effect. See [Environment] for more details.
</description>
</method>
<method name= "environment_set_ssr_roughness_quality" >
<return type= "void" >
</return>
<argument index= "0" name= "quality" type= "int" enum= "RenderingServer.EnvironmentSSRRoughnessQuality" >
</argument>
<description >
</description>
</method>
<method name= "environment_set_tonemap" >
<return type= "void" >
</return>
<argument index= "0" name= "env" type= "RID" >
</argument>
<argument index= "1" name= "tone_mapper" type= "int" enum= "RenderingServer.EnvironmentToneMapper" >
</argument>
<argument index= "2" name= "exposure" type= "float" >
</argument>
<argument index= "3" name= "white" type= "float" >
</argument>
<argument index= "4" name= "auto_exposure" type= "bool" >
</argument>
<argument index= "5" name= "min_luminance" type= "float" >
</argument>
<argument index= "6" name= "max_luminance" type= "float" >
</argument>
<argument index= "7" name= "auto_exp_speed" type= "float" >
</argument>
<argument index= "8" name= "auto_exp_grey" type= "float" >
</argument>
<description >
Sets the variables to be used with the "tonemap" post-process effect. See [Environment] for more details.
</description>
</method>
<method name= "environment_set_volumetric_fog" >
<return type= "void" >
</return>
<argument index= "0" name= "env" type= "RID" >
</argument>
<argument index= "1" name= "enable" type= "bool" >
</argument>
<argument index= "2" name= "density" type= "float" >
</argument>
<argument index= "3" name= "light" type= "Color" >
</argument>
<argument index= "4" name= "light_energy" type= "float" >
</argument>
<argument index= "5" name= "length" type= "float" >
</argument>
<argument index= "6" name= "p_detail_spread" type= "float" >
</argument>
<argument index= "7" name= "gi_inject" type= "float" >
</argument>
<argument index= "8" name= "temporal_reprojection" type= "bool" >
</argument>
<argument index= "9" name= "temporal_reprojection_amount" type= "float" >
</argument>
<description >
</description>
</method>
<method name= "environment_set_volumetric_fog_filter_active" >
<return type= "void" >
</return>
<argument index= "0" name= "active" type= "bool" >
</argument>
<description >
</description>
</method>
<method name= "environment_set_volumetric_fog_volume_size" >
<return type= "void" >
</return>
<argument index= "0" name= "size" type= "int" >
</argument>
<argument index= "1" name= "depth" type= "int" >
</argument>
<description >
</description>
</method>
<method name= "force_draw" >
<return type= "void" >
</return>
<argument index= "0" name= "swap_buffers" type= "bool" default= "true" >
</argument>
<argument index= "1" name= "frame_step" type= "float" default= "0.0" >
</argument>
<description >
</description>
</method>
<method name= "force_sync" >
<return type= "void" >
</return>
<description >
</description>
</method>
<method name= "free_rid" >
<return type= "void" >
</return>
<argument index= "0" name= "rid" type= "RID" >
</argument>
<description >
Tries to free an object in the RenderingServer.
</description>
</method>
<method name= "get_frame_setup_time_cpu" qualifiers= "const" >
<return type= "float" >
</return>
<description >
</description>
</method>
<method name= "get_render_info" >
<return type= "int" >
</return>
<argument index= "0" name= "info" type= "int" enum= "RenderingServer.RenderInfo" >
</argument>
<description >
Returns a certain information, see [enum RenderInfo] for options.
</description>
</method>
<method name= "get_test_cube" >
<return type= "RID" >
</return>
<description >
Returns the id of the test cube. Creates one if none exists.
</description>
</method>
<method name= "get_test_texture" >
<return type= "RID" >
</return>
<description >
Returns the id of the test texture. Creates one if none exists.
</description>
</method>
<method name= "get_video_adapter_name" qualifiers= "const" >
<return type= "String" >
</return>
<description >
Returns the name of the video adapter (e.g. "GeForce GTX 1080/PCIe/SSE2").
[b]Note:[/b] When running a headless or server binary, this function returns an empty string.
</description>
</method>
<method name= "get_video_adapter_vendor" qualifiers= "const" >
<return type= "String" >
</return>
<description >
Returns the vendor of the video adapter (e.g. "NVIDIA Corporation").
[b]Note:[/b] When running a headless or server binary, this function returns an empty string.
</description>
</method>
<method name= "get_white_texture" >
<return type= "RID" >
</return>
<description >
Returns the id of a white texture. Creates one if none exists.
</description>
</method>
<method name= "global_variable_add" >
<return type= "void" >
</return>
<argument index= "0" name= "name" type= "StringName" >
</argument>
<argument index= "1" name= "type" type= "int" enum= "RenderingServer.GlobalVariableType" >
</argument>
<argument index= "2" name= "default_value" type= "Variant" >
</argument>
<description >
</description>
</method>
<method name= "global_variable_get" qualifiers= "const" >
<return type= "Variant" >
</return>
<argument index= "0" name= "name" type= "StringName" >
</argument>
<description >
</description>
</method>
<method name= "global_variable_get_list" qualifiers= "const" >
<return type= "PackedStringArray" >
</return>
<description >
</description>
</method>
<method name= "global_variable_get_type" qualifiers= "const" >
<return type= "int" enum= "RenderingServer.GlobalVariableType" >
</return>
<argument index= "0" name= "name" type= "StringName" >
</argument>
<description >
</description>
</method>
<method name= "global_variable_remove" >
<return type= "void" >
</return>
<argument index= "0" name= "name" type= "StringName" >
</argument>
<description >
</description>
</method>
<method name= "global_variable_set" >
<return type= "void" >
</return>
<argument index= "0" name= "name" type= "StringName" >
</argument>
<argument index= "1" name= "value" type= "Variant" >
</argument>
<description >
</description>
</method>
<method name= "global_variable_set_override" >
<return type= "void" >
</return>
<argument index= "0" name= "name" type= "StringName" >
</argument>
<argument index= "1" name= "value" type= "Variant" >
</argument>
<description >
</description>
</method>
<method name= "has_changed" qualifiers= "const" >
<return type= "bool" >
</return>
<description >
Returns [code]true[/code] if changes have been made to the RenderingServer's data. [method force_draw] is usually called if this happens.
</description>
</method>
<method name= "has_feature" qualifiers= "const" >
<return type= "bool" >
</return>
<argument index= "0" name= "feature" type= "int" enum= "RenderingServer.Features" >
</argument>
<description >
Not yet implemented. Always returns [code]false[/code].
</description>
</method>
<method name= "has_os_feature" qualifiers= "const" >
<return type= "bool" >
</return>
<argument index= "0" name= "feature" type= "String" >
</argument>
<description >
Returns [code]true[/code] if the OS supports a certain feature. Features might be [code]s3tc[/code], [code]etc[/code], [code]etc2[/code] and [code]pvrtc[/code].
</description>
</method>
<method name= "instance_attach_object_instance_id" >
<return type= "void" >
</return>
<argument index= "0" name= "instance" type= "RID" >
</argument>
<argument index= "1" name= "id" type= "int" >
</argument>
<description >
Attaches a unique Object ID to instance. Object ID must be attached to instance for proper culling with [method instances_cull_aabb], [method instances_cull_convex], and [method instances_cull_ray].
</description>
</method>
<method name= "instance_attach_skeleton" >
<return type= "void" >
</return>
<argument index= "0" name= "instance" type= "RID" >
</argument>
<argument index= "1" name= "skeleton" type= "RID" >
</argument>
<description >
Attaches a skeleton to an instance. Removes the previous skeleton from the instance.
</description>
</method>
<method name= "instance_create" >
<return type= "RID" >
</return>
<description >
Creates a visual instance and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]instance_*[/code] RenderingServer functions.
Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method.
An instance is a way of placing a 3D object in the scenario. Objects like particles, meshes, and reflection probes need to be associated with an instance to be visible in the scenario using [method instance_set_base].
</description>
</method>
<method name= "instance_create2" >
<return type= "RID" >
</return>
<argument index= "0" name= "base" type= "RID" >
</argument>
<argument index= "1" name= "scenario" type= "RID" >
</argument>
<description >
Creates a visual instance, adds it to the RenderingServer, and sets both base and scenario. It can be accessed with the RID that is returned. This RID will be used in all [code]instance_*[/code] RenderingServer functions.
Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method.
</description>
</method>
<method name= "instance_geometry_get_shader_parameter" qualifiers= "const" >
<return type= "Variant" >
</return>
<argument index= "0" name= "instance" type= "RID" >
</argument>
<argument index= "1" name= "parameter" type= "StringName" >
</argument>
<description >
</description>
</method>
<method name= "instance_geometry_get_shader_parameter_default_value" qualifiers= "const" >
<return type= "Variant" >
</return>
<argument index= "0" name= "instance" type= "RID" >
</argument>
<argument index= "1" name= "parameter" type= "StringName" >
</argument>
<description >
</description>
</method>
<method name= "instance_geometry_get_shader_parameter_list" qualifiers= "const" >
<return type= "Array" >
</return>
<argument index= "0" name= "instance" type= "RID" >
</argument>
<description >
</description>
</method>
<method name= "instance_geometry_set_cast_shadows_setting" >
<return type= "void" >
</return>
<argument index= "0" name= "instance" type= "RID" >
</argument>
<argument index= "1" name= "shadow_casting_setting" type= "int" enum= "RenderingServer.ShadowCastingSetting" >
</argument>
<description >
Sets the shadow casting setting to one of [enum ShadowCastingSetting]. Equivalent to [member GeometryInstance3D.cast_shadow].
</description>
</method>
<method name= "instance_geometry_set_flag" >
<return type= "void" >
</return>
<argument index= "0" name= "instance" type= "RID" >
</argument>
<argument index= "1" name= "flag" type= "int" enum= "RenderingServer.InstanceFlags" >
</argument>
<argument index= "2" name= "enabled" type= "bool" >
</argument>
<description >
Sets the flag for a given [enum InstanceFlags]. See [enum InstanceFlags] for more details.
</description>
</method>
<method name= "instance_geometry_set_lightmap" >
<return type= "void" >
</return>
<argument index= "0" name= "instance" type= "RID" >
</argument>
<argument index= "1" name= "lightmap" type= "RID" >
</argument>
<argument index= "2" name= "lightmap_uv_scale" type= "Rect2" >
</argument>
<argument index= "3" name= "lightmap_slice" type= "int" >
</argument>
<description >
</description>
</method>
<method name= "instance_geometry_set_lod_bias" >
<return type= "void" >
</return>
<argument index= "0" name= "instance" type= "RID" >
</argument>
<argument index= "1" name= "lod_bias" type= "float" >
</argument>
<description >
</description>
</method>
<method name= "instance_geometry_set_material_override" >
<return type= "void" >
</return>
<argument index= "0" name= "instance" type= "RID" >
</argument>
<argument index= "1" name= "material" type= "RID" >
</argument>
<description >
Sets a material that will override the material for all surfaces on the mesh associated with this instance. Equivalent to [member GeometryInstance3D.material_override].
</description>
</method>
<method name= "instance_geometry_set_shader_parameter" >
<return type= "void" >
</return>
<argument index= "0" name= "instance" type= "RID" >
</argument>
<argument index= "1" name= "parameter" type= "StringName" >
</argument>
<argument index= "2" name= "value" type= "Variant" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-05-09 18:23:20 +02:00
<method name= "instance_geometry_set_visibility_range" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "instance" type= "RID" >
</argument>
<argument index= "1" name= "min" type= "float" >
</argument>
<argument index= "2" name= "max" type= "float" >
</argument>
<argument index= "3" name= "min_margin" type= "float" >
</argument>
<argument index= "4" name= "max_margin" type= "float" >
</argument>
<description >
Sets the visibility range values for the given geometry instance. Equivalent to [member GeometryInstance3D.visibility_range_begin] and related properties.
</description>
</method>
<method name= "instance_set_base" >
<return type= "void" >
</return>
<argument index= "0" name= "instance" type= "RID" >
</argument>
<argument index= "1" name= "base" type= "RID" >
</argument>
<description >
Sets the base of the instance. A base can be any of the 3D objects that are created in the RenderingServer that can be displayed. For example, any of the light types, mesh, multimesh, immediate geometry, particle system, reflection probe, lightmap, and the GI probe are all types that can be set as the base of an instance in order to be displayed in the scenario.
</description>
</method>
<method name= "instance_set_blend_shape_weight" >
<return type= "void" >
</return>
<argument index= "0" name= "instance" type= "RID" >
</argument>
<argument index= "1" name= "shape" type= "int" >
</argument>
<argument index= "2" name= "weight" type= "float" >
</argument>
<description >
Sets the weight for a given blend shape associated with this instance.
</description>
</method>
<method name= "instance_set_custom_aabb" >
<return type= "void" >
</return>
<argument index= "0" name= "instance" type= "RID" >
</argument>
<argument index= "1" name= "aabb" type= "AABB" >
</argument>
<description >
Sets a custom AABB to use when culling objects from the view frustum. Equivalent to [method GeometryInstance3D.set_custom_aabb].
</description>
</method>
<method name= "instance_set_extra_visibility_margin" >
<return type= "void" >
</return>
<argument index= "0" name= "instance" type= "RID" >
</argument>
<argument index= "1" name= "margin" type= "float" >
</argument>
<description >
Sets a margin to increase the size of the AABB when culling objects from the view frustum. This allows you to avoid culling objects that fall outside the view frustum. Equivalent to [member GeometryInstance3D.extra_cull_margin].
</description>
</method>
<method name= "instance_set_layer_mask" >
<return type= "void" >
</return>
<argument index= "0" name= "instance" type= "RID" >
</argument>
<argument index= "1" name= "mask" type= "int" >
</argument>
<description >
Sets the render layers that this instance will be drawn to. Equivalent to [member VisualInstance3D.layers].
</description>
</method>
<method name= "instance_set_scenario" >
<return type= "void" >
</return>
<argument index= "0" name= "instance" type= "RID" >
</argument>
<argument index= "1" name= "scenario" type= "RID" >
</argument>
<description >
Sets the scenario that the instance is in. The scenario is the 3D world that the objects will be displayed in.
</description>
</method>
<method name= "instance_set_surface_override_material" >
<return type= "void" >
</return>
<argument index= "0" name= "instance" type= "RID" >
</argument>
<argument index= "1" name= "surface" type= "int" >
</argument>
<argument index= "2" name= "material" type= "RID" >
</argument>
<description >
Sets the override material of a specific surface. Equivalent to [method MeshInstance3D.set_surface_override_material].
</description>
</method>
<method name= "instance_set_transform" >
<return type= "void" >
</return>
<argument index= "0" name= "instance" type= "RID" >
</argument>
<argument index= "1" name= "transform" type= "Transform3D" >
</argument>
<description >
Sets the world space transform of the instance. Equivalent to [member Node3D.transform].
</description>
</method>
<method name= "instance_set_visibility_parent" >
<return type= "void" >
</return>
<argument index= "0" name= "instance" type= "RID" >
</argument>
<argument index= "1" name= "parent" type= "RID" >
</argument>
<description >
Sets the visibility parent for the given instance. Equivalent to [member Node3D.visibility_parent].
</description>
</method>
<method name= "instance_set_visible" >
<return type= "void" >
</return>
<argument index= "0" name= "instance" type= "RID" >
</argument>
<argument index= "1" name= "visible" type= "bool" >
</argument>
<description >
Sets whether an instance is drawn or not. Equivalent to [member Node3D.visible].
</description>
</method>
<method name= "instances_cull_aabb" qualifiers= "const" >
<return type= "Array" >
</return>
<argument index= "0" name= "aabb" type= "AABB" >
</argument>
<argument index= "1" name= "scenario" type= "RID" >
</argument>
<description >
Returns an array of object IDs intersecting with the provided AABB. Only visual 3D nodes are considered, such as [MeshInstance3D] or [DirectionalLight3D]. Use [method @GlobalScope.instance_from_id] to obtain the actual nodes. A scenario RID must be provided, which is available in the [World3D] you want to query. This forces an update for all resources queued to update.
[b]Warning:[/b] This function is primarily intended for editor usage. For in-game use cases, prefer physics collision.
</description>
</method>
<method name= "instances_cull_convex" qualifiers= "const" >
<return type= "Array" >
</return>
<argument index= "0" name= "convex" type= "Array" >
</argument>
<argument index= "1" name= "scenario" type= "RID" >
</argument>
<description >
Returns an array of object IDs intersecting with the provided convex shape. Only visual 3D nodes are considered, such as [MeshInstance3D] or [DirectionalLight3D]. Use [method @GlobalScope.instance_from_id] to obtain the actual nodes. A scenario RID must be provided, which is available in the [World3D] you want to query. This forces an update for all resources queued to update.
[b]Warning:[/b] This function is primarily intended for editor usage. For in-game use cases, prefer physics collision.
</description>
</method>
<method name= "instances_cull_ray" qualifiers= "const" >
<return type= "Array" >
</return>
<argument index= "0" name= "from" type= "Vector3" >
</argument>
<argument index= "1" name= "to" type= "Vector3" >
</argument>
<argument index= "2" name= "scenario" type= "RID" >
</argument>
<description >
Returns an array of object IDs intersecting with the provided 3D ray. Only visual 3D nodes are considered, such as [MeshInstance3D] or [DirectionalLight3D]. Use [method @GlobalScope.instance_from_id] to obtain the actual nodes. A scenario RID must be provided, which is available in the [World3D] you want to query. This forces an update for all resources queued to update.
[b]Warning:[/b] This function is primarily intended for editor usage. For in-game use cases, prefer physics collision.
</description>
</method>
<method name= "light_directional_set_blend_splits" >
<return type= "void" >
</return>
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "enable" type= "bool" >
</argument>
<description >
If [code]true[/code], this directional light will blend between shadow map splits resulting in a smoother transition between them. Equivalent to [member DirectionalLight3D.directional_shadow_blend_splits].
</description>
</method>
<method name= "light_directional_set_shadow_depth_range_mode" >
<return type= "void" >
</return>
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "range_mode" type= "int" enum= "RenderingServer.LightDirectionalShadowDepthRangeMode" >
</argument>
<description >
Sets the shadow depth range mode for this directional light. Equivalent to [member DirectionalLight3D.directional_shadow_depth_range]. See [enum LightDirectionalShadowDepthRangeMode] for options.
</description>
</method>
<method name= "light_directional_set_shadow_mode" >
<return type= "void" >
</return>
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "mode" type= "int" enum= "RenderingServer.LightDirectionalShadowMode" >
</argument>
<description >
Sets the shadow mode for this directional light. Equivalent to [member DirectionalLight3D.directional_shadow_mode]. See [enum LightDirectionalShadowMode] for options.
</description>
</method>
<method name= "light_directional_set_sky_only" >
<return type= "void" >
</return>
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "enable" type= "bool" >
</argument>
<description >
If [code]true[/code], this light will not be used for anything except sky shaders. Use this for lights that impact your sky shader that you may want to hide from affecting the rest of the scene. For example, you may want to enable this when the sun in your sky shader falls below the horizon.
</description>
</method>
<method name= "light_omni_set_shadow_mode" >
<return type= "void" >
</return>
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "mode" type= "int" enum= "RenderingServer.LightOmniShadowMode" >
</argument>
<description >
Sets whether to use a dual paraboloid or a cubemap for the shadow map. Dual paraboloid is faster but may suffer from artifacts. Equivalent to [member OmniLight3D.omni_shadow_mode].
</description>
</method>
<method name= "light_set_bake_mode" >
<return type= "void" >
</return>
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "bake_mode" type= "int" enum= "RenderingServer.LightBakeMode" >
</argument>
<description >
</description>
</method>
<method name= "light_set_color" >
<return type= "void" >
</return>
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "color" type= "Color" >
</argument>
<description >
Sets the color of the light. Equivalent to [member Light3D.light_color].
</description>
</method>
<method name= "light_set_cull_mask" >
<return type= "void" >
</return>
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "mask" type= "int" >
</argument>
<description >
Sets the cull mask for this Light3D. Lights only affect objects in the selected layers. Equivalent to [member Light3D.light_cull_mask].
</description>
</method>
<method name= "light_set_max_sdfgi_cascade" >
<return type= "void" >
</return>
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "cascade" type= "int" >
</argument>
<description >
</description>
</method>
<method name= "light_set_negative" >
<return type= "void" >
</return>
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "enable" type= "bool" >
</argument>
<description >
If [code]true[/code], light will subtract light instead of adding light. Equivalent to [member Light3D.light_negative].
</description>
</method>
<method name= "light_set_param" >
<return type= "void" >
</return>
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "param" type= "int" enum= "RenderingServer.LightParam" >
</argument>
<argument index= "2" name= "value" type= "float" >
</argument>
<description >
Sets the specified light parameter. See [enum LightParam] for options. Equivalent to [method Light3D.set_param].
</description>
</method>
<method name= "light_set_projector" >
<return type= "void" >
</return>
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "texture" type= "RID" >
</argument>
<description >
Not implemented in Godot 3.x.
</description>
</method>
<method name= "light_set_reverse_cull_face_mode" >
<return type= "void" >
</return>
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "enabled" type= "bool" >
</argument>
<description >
If [code]true[/code], reverses the backface culling of the mesh. This can be useful when you have a flat mesh that has a light behind it. If you need to cast a shadow on both sides of the mesh, set the mesh to use double-sided shadows with [method instance_geometry_set_cast_shadows_setting]. Equivalent to [member Light3D.shadow_reverse_cull_face].
</description>
</method>
<method name= "light_set_shadow" >
<return type= "void" >
</return>
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "enabled" type= "bool" >
</argument>
<description >
If [code]true[/code], light will cast shadows. Equivalent to [member Light3D.shadow_enabled].
</description>
</method>
<method name= "light_set_shadow_color" >
<return type= "void" >
</return>
<argument index= "0" name= "light" type= "RID" >
</argument>
<argument index= "1" name= "color" type= "Color" >
</argument>
<description >
Sets the color of the shadow cast by the light. Equivalent to [member Light3D.shadow_color].
</description>
</method>
<method name= "lightmap_create" >
<return type= "RID" >
</return>
<description >
</description>
</method>
<method name= "lightmap_get_probe_capture_bsp_tree" qualifiers= "const" >
<return type= "PackedInt32Array" >
</return>
<argument index= "0" name= "lightmap" type= "RID" >
</argument>
<description >
</description>
</method>
<method name= "lightmap_get_probe_capture_points" qualifiers= "const" >
<return type= "PackedVector3Array" >
</return>
<argument index= "0" name= "lightmap" type= "RID" >
</argument>
<description >
</description>
</method>
<method name= "lightmap_get_probe_capture_sh" qualifiers= "const" >
<return type= "PackedColorArray" >
</return>
<argument index= "0" name= "lightmap" type= "RID" >
</argument>
<description >
</description>
</method>
<method name= "lightmap_get_probe_capture_tetrahedra" qualifiers= "const" >
<return type= "PackedInt32Array" >
</return>
<argument index= "0" name= "lightmap" type= "RID" >
</argument>
<description >
</description>
</method>
<method name= "lightmap_set_probe_bounds" >
<return type= "void" >
</return>
<argument index= "0" name= "lightmap" type= "RID" >
</argument>
<argument index= "1" name= "bounds" type= "AABB" >
</argument>
<description >
</description>
</method>
<method name= "lightmap_set_probe_capture_data" >
<return type= "void" >
</return>
<argument index= "0" name= "lightmap" type= "RID" >
</argument>
<argument index= "1" name= "points" type= "PackedVector3Array" >
</argument>
<argument index= "2" name= "point_sh" type= "PackedColorArray" >
</argument>
<argument index= "3" name= "tetrahedra" type= "PackedInt32Array" >
</argument>
<argument index= "4" name= "bsp_tree" type= "PackedInt32Array" >
</argument>
<description >
</description>
</method>
<method name= "lightmap_set_probe_capture_update_speed" >
<return type= "void" >
</return>
<argument index= "0" name= "speed" type= "float" >
</argument>
<description >
</description>
</method>
<method name= "lightmap_set_probe_interior" >
<return type= "void" >
</return>
<argument index= "0" name= "lightmap" type= "RID" >
</argument>
<argument index= "1" name= "interior" type= "bool" >
</argument>
<description >
</description>
</method>
<method name= "lightmap_set_textures" >
<return type= "void" >
</return>
<argument index= "0" name= "lightmap" type= "RID" >
</argument>
<argument index= "1" name= "light" type= "RID" >
</argument>
<argument index= "2" name= "uses_sh" type= "bool" >
</argument>
<description >
</description>
</method>
<method name= "make_sphere_mesh" >
<return type= "RID" >
</return>
<argument index= "0" name= "latitudes" type= "int" >
</argument>
<argument index= "1" name= "longitudes" type= "int" >
</argument>
<argument index= "2" name= "radius" type= "float" >
</argument>
<description >
Returns a mesh of a sphere with the given amount of horizontal and vertical subdivisions.
</description>
</method>
<method name= "material_create" >
<return type= "RID" >
</return>
<description >
Creates an empty material and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]material_*[/code] RenderingServer functions.
Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method.
</description>
</method>
<method name= "material_get_param" qualifiers= "const" >
<return type= "Variant" >
</return>
<argument index= "0" name= "material" type= "RID" >
</argument>
<argument index= "1" name= "parameter" type= "StringName" >
</argument>
<description >
Returns the value of a certain material's parameter.
</description>
</method>
<method name= "material_set_next_pass" >
<return type= "void" >
</return>
<argument index= "0" name= "material" type= "RID" >
</argument>
<argument index= "1" name= "next_material" type= "RID" >
</argument>
<description >
Sets an object's next material.
</description>
</method>
<method name= "material_set_param" >
<return type= "void" >
</return>
<argument index= "0" name= "material" type= "RID" >
</argument>
<argument index= "1" name= "parameter" type= "StringName" >
</argument>
<argument index= "2" name= "value" type= "Variant" >
</argument>
<description >
Sets a material's parameter.
</description>
</method>
<method name= "material_set_render_priority" >
<return type= "void" >
</return>
<argument index= "0" name= "material" type= "RID" >
</argument>
<argument index= "1" name= "priority" type= "int" >
</argument>
<description >
Sets a material's render priority.
</description>
</method>
<method name= "material_set_shader" >
<return type= "void" >
</return>
<argument index= "0" name= "shader_material" type= "RID" >
</argument>
<argument index= "1" name= "shader" type= "RID" >
</argument>
<description >
Sets a shader material's shader.
</description>
</method>
<method name= "mesh_add_surface" >
<return type= "void" >
</return>
<argument index= "0" name= "mesh" type= "RID" >
</argument>
<argument index= "1" name= "surface" type= "Dictionary" >
</argument>
<description >
</description>
</method>
<method name= "mesh_add_surface_from_arrays" >
<return type= "void" >
</return>
<argument index= "0" name= "mesh" type= "RID" >
</argument>
<argument index= "1" name= "primitive" type= "int" enum= "RenderingServer.PrimitiveType" >
</argument>
<argument index= "2" name= "arrays" type= "Array" >
</argument>
<argument index= "3" name= "blend_shapes" type= "Array" default= "[]" >
</argument>
<argument index= "4" name= "lods" type= "Dictionary" default= "{
}">
</argument>
<argument index= "5" name= "compress_format" type= "int" default= "0" >
</argument>
<description >
</description>
</method>
<method name= "mesh_clear" >
<return type= "void" >
</return>
<argument index= "0" name= "mesh" type= "RID" >
</argument>
<description >
Removes all surfaces from a mesh.
</description>
</method>
<method name= "mesh_create" >
<return type= "RID" >
</return>
<description >
Creates a new mesh and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]mesh_*[/code] RenderingServer functions.
Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method.
To place in a scene, attach this mesh to an instance using [method instance_set_base] using the returned RID.
</description>
</method>
<method name= "mesh_create_from_surfaces" >
<return type= "RID" >
</return>
<argument index= "0" name= "surfaces" type= "Dictionary[]" >
</argument>
<argument index= "1" name= "blend_shape_count" type= "int" default= "0" >
</argument>
<description >
</description>
</method>
<method name= "mesh_get_blend_shape_count" qualifiers= "const" >
<return type= "int" >
</return>
<argument index= "0" name= "mesh" type= "RID" >
</argument>
<description >
Returns a mesh's blend shape count.
</description>
</method>
<method name= "mesh_get_blend_shape_mode" qualifiers= "const" >
<return type= "int" enum= "RenderingServer.BlendShapeMode" >
</return>
<argument index= "0" name= "mesh" type= "RID" >
</argument>
<description >
Returns a mesh's blend shape mode.
</description>
</method>
<method name= "mesh_get_custom_aabb" qualifiers= "const" >
<return type= "AABB" >
</return>
<argument index= "0" name= "mesh" type= "RID" >
</argument>
<description >
Returns a mesh's custom aabb.
</description>
</method>
<method name= "mesh_get_surface" >
<return type= "Dictionary" >
</return>
<argument index= "0" name= "mesh" type= "RID" >
</argument>
<argument index= "1" name= "surface" type= "int" >
</argument>
<description >
</description>
</method>
<method name= "mesh_get_surface_count" qualifiers= "const" >
<return type= "int" >
</return>
<argument index= "0" name= "mesh" type= "RID" >
</argument>
<description >
Returns a mesh's number of surfaces.
</description>
</method>
<method name= "mesh_set_blend_shape_mode" >
<return type= "void" >
</return>
<argument index= "0" name= "mesh" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "mode" type= "int" enum= "RenderingServer.BlendShapeMode" >
2021-05-09 18:23:20 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<description >
Sets a mesh's blend shape mode.
</description>
</method>
<method name= "mesh_set_custom_aabb" >
<return type= "void" >
</return>
<argument index= "0" name= "mesh" type= "RID" >
2021-05-09 18:23:20 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "aabb" type= "AABB" >
2021-05-09 18:23:20 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<description >
Sets a mesh's custom aabb.
</description>
</method>
<method name= "mesh_set_shadow_mesh" >
<return type= "void" >
</return>
<argument index= "0" name= "mesh" type= "RID" >
</argument>
<argument index= "1" name= "shadow_mesh" type= "RID" >
</argument>
<description >
</description>
</method>
<method name= "mesh_surface_get_arrays" qualifiers= "const" >
<return type= "Array" >
</return>
<argument index= "0" name= "mesh" type= "RID" >
</argument>
<argument index= "1" name= "surface" type= "int" >
</argument>
<description >
Returns a mesh's surface's buffer arrays.
</description>
</method>
<method name= "mesh_surface_get_blend_shape_arrays" qualifiers= "const" >
<return type= "Array" >
</return>
<argument index= "0" name= "mesh" type= "RID" >
</argument>
<argument index= "1" name= "surface" type= "int" >
</argument>
<description >
Returns a mesh's surface's arrays for blend shapes.
</description>
</method>
<method name= "mesh_surface_get_format_attribute_stride" qualifiers= "const" >
<return type= "int" >
</return>
<argument index= "0" name= "format" type= "int" >
</argument>
<argument index= "1" name= "vertex_count" type= "int" >
</argument>
<description >
</description>
</method>
<method name= "mesh_surface_get_format_offset" qualifiers= "const" >
<return type= "int" >
</return>
<argument index= "0" name= "format" type= "int" >
</argument>
<argument index= "1" name= "vertex_count" type= "int" >
</argument>
<argument index= "2" name= "array_index" type= "int" >
</argument>
<description >
</description>
</method>
<method name= "mesh_surface_get_format_skin_stride" qualifiers= "const" >
<return type= "int" >
</return>
<argument index= "0" name= "format" type= "int" >
</argument>
<argument index= "1" name= "vertex_count" type= "int" >
</argument>
<description >
</description>
</method>
<method name= "mesh_surface_get_format_vertex_stride" qualifiers= "const" >
<return type= "int" >
</return>
<argument index= "0" name= "format" type= "int" >
</argument>
<argument index= "1" name= "vertex_count" type= "int" >
</argument>
<description >
</description>
</method>
<method name= "mesh_surface_get_material" qualifiers= "const" >
<return type= "RID" >
</return>
<argument index= "0" name= "mesh" type= "RID" >
</argument>
<argument index= "1" name= "surface" type= "int" >
</argument>
<description >
Returns a mesh's surface's material.
</description>
</method>
<method name= "mesh_surface_set_material" >
<return type= "void" >
</return>
<argument index= "0" name= "mesh" type= "RID" >
</argument>
<argument index= "1" name= "surface" type= "int" >
</argument>
<argument index= "2" name= "material" type= "RID" >
</argument>
<description >
Sets a mesh's surface's material.
</description>
</method>
<method name= "mesh_surface_update_attribute_region" >
<return type= "void" >
</return>
<argument index= "0" name= "mesh" type= "RID" >
</argument>
<argument index= "1" name= "surface" type= "int" >
</argument>
<argument index= "2" name= "offset" type= "int" >
</argument>
<argument index= "3" name= "data" type= "PackedByteArray" >
</argument>
<description >
</description>
</method>
<method name= "mesh_surface_update_skin_region" >
<return type= "void" >
</return>
<argument index= "0" name= "mesh" type= "RID" >
</argument>
<argument index= "1" name= "surface" type= "int" >
</argument>
<argument index= "2" name= "offset" type= "int" >
</argument>
<argument index= "3" name= "data" type= "PackedByteArray" >
</argument>
<description >
</description>
</method>
<method name= "mesh_surface_update_vertex_region" >
<return type= "void" >
</return>
<argument index= "0" name= "mesh" type= "RID" >
</argument>
<argument index= "1" name= "surface" type= "int" >
</argument>
<argument index= "2" name= "offset" type= "int" >
</argument>
<argument index= "3" name= "data" type= "PackedByteArray" >
</argument>
<description >
</description>
</method>
<method name= "multimesh_allocate_data" >
<return type= "void" >
</return>
<argument index= "0" name= "multimesh" type= "RID" >
</argument>
<argument index= "1" name= "instances" type= "int" >
</argument>
<argument index= "2" name= "transform_format" type= "int" enum= "RenderingServer.MultimeshTransformFormat" >
</argument>
<argument index= "3" name= "color_format" type= "bool" default= "false" >
</argument>
<argument index= "4" name= "custom_data_format" type= "bool" default= "false" >
</argument>
<description >
</description>
</method>
<method name= "multimesh_create" >
<return type= "RID" >
</return>
<description >
Creates a new multimesh on the RenderingServer and returns an [RID] handle. This RID will be used in all [code]multimesh_*[/code] RenderingServer functions.
Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method.
To place in a scene, attach this multimesh to an instance using [method instance_set_base] using the returned RID.
</description>
</method>
<method name= "multimesh_get_aabb" qualifiers= "const" >
<return type= "AABB" >
</return>
<argument index= "0" name= "multimesh" type= "RID" >
</argument>
<description >
Calculates and returns the axis-aligned bounding box that encloses all instances within the multimesh.
</description>
</method>
<method name= "multimesh_get_buffer" qualifiers= "const" >
<return type= "PackedFloat32Array" >
</return>
<argument index= "0" name= "multimesh" type= "RID" >
</argument>
<description >
</description>
</method>
<method name= "multimesh_get_instance_count" qualifiers= "const" >
<return type= "int" >
</return>
<argument index= "0" name= "multimesh" type= "RID" >
</argument>
<description >
Returns the number of instances allocated for this multimesh.
</description>
</method>
<method name= "multimesh_get_mesh" qualifiers= "const" >
<return type= "RID" >
</return>
<argument index= "0" name= "multimesh" type= "RID" >
</argument>
<description >
Returns the RID of the mesh that will be used in drawing this multimesh.
</description>
</method>
<method name= "multimesh_get_visible_instances" qualifiers= "const" >
<return type= "int" >
</return>
<argument index= "0" name= "multimesh" type= "RID" >
</argument>
<description >
Returns the number of visible instances for this multimesh.
</description>
</method>
<method name= "multimesh_instance_get_color" qualifiers= "const" >
<return type= "Color" >
</return>
<argument index= "0" name= "multimesh" type= "RID" >
</argument>
<argument index= "1" name= "index" type= "int" >
</argument>
<description >
Returns the color by which the specified instance will be modulated.
</description>
</method>
<method name= "multimesh_instance_get_custom_data" qualifiers= "const" >
<return type= "Color" >
</return>
<argument index= "0" name= "multimesh" type= "RID" >
</argument>
<argument index= "1" name= "index" type= "int" >
</argument>
<description >
Returns the custom data associated with the specified instance.
</description>
</method>
<method name= "multimesh_instance_get_transform" qualifiers= "const" >
<return type= "Transform3D" >
</return>
<argument index= "0" name= "multimesh" type= "RID" >
</argument>
<argument index= "1" name= "index" type= "int" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Returns the [Transform3D] of the specified instance.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "multimesh_instance_get_transform_2d" qualifiers= "const" >
<return type= "Transform2D" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "multimesh" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "index" type= "int" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Returns the [Transform2D] of the specified instance. For use when the multimesh is set to use 2D transforms.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "multimesh_instance_set_color" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "multimesh" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "index" type= "int" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "2" name= "color" type= "Color" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the color by which this instance will be modulated. Equivalent to [method MultiMesh.set_instance_color].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "multimesh_instance_set_custom_data" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "multimesh" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "index" type= "int" >
</argument>
<argument index= "2" name= "custom_data" type= "Color" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the custom data for this instance. Custom data is passed as a [Color], but is interpreted as a [code]vec4[/code] in the shader. Equivalent to [method MultiMesh.set_instance_custom_data].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "multimesh_instance_set_transform" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "multimesh" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "index" type= "int" >
</argument>
<argument index= "2" name= "transform" type= "Transform3D" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the [Transform3D] for this instance. Equivalent to [method MultiMesh.set_instance_transform].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "multimesh_instance_set_transform_2d" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "multimesh" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "index" type= "int" >
</argument>
<argument index= "2" name= "transform" type= "Transform2D" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the [Transform2D] for this instance. For use when multimesh is used in 2D. Equivalent to [method MultiMesh.set_instance_transform_2d].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "multimesh_set_buffer" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "multimesh" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "buffer" type= "PackedFloat32Array" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "multimesh_set_mesh" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "multimesh" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "mesh" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the mesh to be drawn by the multimesh. Equivalent to [member MultiMesh.mesh].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "multimesh_set_visible_instances" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "multimesh" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "visible" type= "int" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the number of instances visible at a given time. If -1, all instances that have been allocated are drawn. Equivalent to [member MultiMesh.visible_instance_count].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "occluder_create" >
<return type= "RID" >
2018-02-19 10:47:16 +01:00
</return>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "occluder_set_mesh" >
2021-05-09 18:23:20 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "occluder" type= "RID" >
2021-05-09 18:23:20 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "vertices" type= "PackedVector3Array" >
</argument>
<argument index= "2" name= "indices" type= "PackedInt32Array" >
2021-05-09 18:23:20 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "omni_light_create" >
<return type= "RID" >
2018-02-19 10:47:16 +01:00
</return>
<description >
2021-07-01 04:17:47 +02:00
Creates a new omni light and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID can be used in most [code]light_*[/code] RenderingServer functions.
Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method.
To place in a scene, attach this omni light to an instance using [method instance_set_base] using the returned RID.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_collision_create" >
<return type= "RID" >
2018-02-19 10:47:16 +01:00
</return>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_collision_height_field_update" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles_collision" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_collision_set_attractor_attenuation" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles_collision" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "curve" type= "float" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_collision_set_attractor_directionality" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles_collision" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "amount" type= "float" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_collision_set_attractor_strength" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles_collision" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "setrngth" type= "float" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_collision_set_box_extents" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles_collision" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "extents" type= "Vector3" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_collision_set_collision_type" >
2020-10-22 08:22:53 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles_collision" type= "RID" >
2020-10-22 08:22:53 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "type" type= "int" enum= "RenderingServer.ParticlesCollisionType" >
2020-10-22 08:22:53 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_collision_set_cull_mask" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles_collision" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "mask" type= "int" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_collision_set_field_texture" >
2020-07-01 14:18:13 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles_collision" type= "RID" >
2020-07-01 14:18:13 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "texture" type= "RID" >
2020-07-01 14:18:13 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_collision_set_height_field_resolution" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles_collision" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "resolution" type= "int" enum= "RenderingServer.ParticlesCollisionHeightfieldResolution" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_collision_set_sphere_radius" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles_collision" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "radius" type= "float" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_create" >
<return type= "RID" >
2018-02-19 10:47:16 +01:00
</return>
<description >
2021-07-01 04:17:47 +02:00
Creates a particle system and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]particles_*[/code] RenderingServer functions.
Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method.
To place in a scene, attach these particles to an instance using [method instance_set_base] using the returned RID.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_emit" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "transform" type= "Transform3D" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "2" name= "velocity" type= "Vector3" >
</argument>
<argument index= "3" name= "color" type= "Color" >
</argument>
<argument index= "4" name= "custom" type= "Color" >
</argument>
<argument index= "5" name= "emit_flags" type= "int" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_get_current_aabb" >
<return type= "AABB" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Calculates and returns the axis-aligned bounding box that contains all the particles. Equivalent to [method GPUParticles3D.capture_aabb].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_get_emitting" >
<return type= "bool" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<description >
Returns [code]true[/code] if particles are currently set to emitting.
</description>
</method>
<method name= "particles_is_inactive" >
<return type= "bool" >
</return>
<argument index= "0" name= "particles" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Returns [code]true[/code] if particles are not emitting and particles are set to inactive.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_request_process" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Add particle system to list of particle systems that need to be updated. Update will take place on the next frame, or on the next call to [method instances_cull_aabb], [method instances_cull_convex], or [method instances_cull_ray].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_restart" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Reset the particles on the next update. Equivalent to [method GPUParticles3D.restart].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_amount" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "amount" type= "int" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the number of particles to be drawn and allocates the memory for them. Equivalent to [member GPUParticles3D.amount].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_collision_base_size" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
</argument>
<argument index= "1" name= "size" type= "float" >
</argument>
2018-02-19 10:47:16 +01:00
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_custom_aabb" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "aabb" type= "AABB" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets a custom axis-aligned bounding box for the particle system. Equivalent to [member GPUParticles3D.visibility_aabb].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_draw_order" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "order" type= "int" enum= "RenderingServer.ParticlesDrawOrder" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the draw order of the particles to one of the named enums from [enum ParticlesDrawOrder]. See [enum ParticlesDrawOrder] for options. Equivalent to [member GPUParticles3D.draw_order].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_draw_pass_mesh" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "pass" type= "int" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "2" name= "mesh" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the mesh to be used for the specified draw pass. Equivalent to [member GPUParticles3D.draw_pass_1], [member GPUParticles3D.draw_pass_2], [member GPUParticles3D.draw_pass_3], and [member GPUParticles3D.draw_pass_4].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_draw_passes" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "count" type= "int" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the number of draw passes to use. Equivalent to [member GPUParticles3D.draw_passes].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_emission_transform" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "transform" type= "Transform3D" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the [Transform3D] that will be used by the particles when they first emit.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_emitting" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
</argument>
<argument index= "1" name= "emitting" type= "bool" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
If [code]true[/code], particles will emit over time. Setting to false does not reset the particles, but only stops their emission. Equivalent to [member GPUParticles3D.emitting].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_explosiveness_ratio" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
</argument>
<argument index= "1" name= "ratio" type= "float" >
</argument>
2018-02-19 10:47:16 +01:00
<description >
2021-07-01 04:17:47 +02:00
Sets the explosiveness ratio. Equivalent to [member GPUParticles3D.explosiveness].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_fixed_fps" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
</argument>
<argument index= "1" name= "fps" type= "int" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the frame rate that the particle system rendering will be fixed to. Equivalent to [member GPUParticles3D.fixed_fps].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_fractional_delta" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
</argument>
<argument index= "1" name= "enable" type= "bool" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
If [code]true[/code], uses fractional delta which smooths the movement of the particles. Equivalent to [member GPUParticles3D.fract_delta].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_interpolate" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
</argument>
<argument index= "1" name= "enable" type= "bool" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_lifetime" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
</argument>
<argument index= "1" name= "lifetime" type= "float" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the lifetime of each particle in the system. Equivalent to [member GPUParticles3D.lifetime].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_mode" >
2020-02-12 09:59:06 +01:00
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "mode" type= "int" enum= "RenderingServer.ParticlesMode" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_one_shot" >
2020-02-12 09:59:06 +01:00
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "one_shot" type= "bool" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
If [code]true[/code], particles will emit once and then stop. Equivalent to [member GPUParticles3D.one_shot].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_pre_process_time" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "time" type= "float" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the preprocess time for the particles' animation. This lets you delay starting an animation until after the particles have begun emitting. Equivalent to [member GPUParticles3D.preprocess].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_process_material" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "material" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the material for processing the particles. Note: this is not the material used to draw the materials. Equivalent to [member GPUParticles3D.process_material].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_randomness_ratio" >
<return type= "void" >
2018-07-26 11:56:21 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-07-26 11:56:21 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "ratio" type= "float" >
2020-12-04 15:54:48 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the emission randomness ratio. This randomizes the emission of particles within their phase. Equivalent to [member GPUParticles3D.randomness].
2020-12-04 15:54:48 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_speed_scale" >
<return type= "void" >
2020-12-04 15:54:48 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-07-26 11:56:21 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "scale" type= "float" >
2018-07-26 11:56:21 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the speed scale of the particle system. Equivalent to [member GPUParticles3D.speed_scale].
2018-07-26 11:56:21 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_subemitter" >
<return type= "void" >
2018-07-26 11:56:21 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-07-26 11:56:21 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "subemitter_particles" type= "RID" >
2020-12-04 15:54:48 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_trail_bind_poses" >
<return type= "void" >
2020-12-04 15:54:48 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-07-26 11:56:21 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "bind_poses" type= "Transform3D[]" >
2018-07-26 11:56:21 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_trails" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enable" type= "bool" >
</argument>
<argument index= "2" name= "length_sec" type= "float" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_transform_align" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "align" type= "int" enum= "RenderingServer.ParticlesTransformAlign" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "particles_set_use_local_coordinates" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "particles" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enable" type= "bool" >
2018-07-26 11:56:21 +02:00
</argument>
2018-02-19 10:47:16 +01:00
<description >
2021-07-01 04:17:47 +02:00
If [code]true[/code], particles use local coordinates. If [code]false[/code] they use global coordinates. Equivalent to [member GPUParticles3D.local_coords].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "reflection_probe_create" >
2019-12-01 06:47:16 +01:00
<return type= "RID" >
</return>
<description >
2021-07-01 04:17:47 +02:00
Creates a reflection probe and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]reflection_probe_*[/code] RenderingServer functions.
2020-03-30 18:22:57 +02:00
Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method.
2021-07-01 04:17:47 +02:00
To place in a scene, attach this reflection probe to an instance using [method instance_set_base] using the returned RID.
2019-12-01 06:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "reflection_probe_set_ambient_color" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "probe" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "color" type= "Color" >
2020-02-12 09:59:06 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "reflection_probe_set_ambient_energy" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "probe" type= "RID" >
</argument>
<argument index= "1" name= "energy" type= "float" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "reflection_probe_set_ambient_mode" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "probe" type= "RID" >
</argument>
<argument index= "1" name= "mode" type= "int" enum= "RenderingServer.ReflectionProbeAmbientMode" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "reflection_probe_set_as_interior" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "probe" type= "RID" >
</argument>
<argument index= "1" name= "enable" type= "bool" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
If [code]true[/code], reflections will ignore sky contribution. Equivalent to [member ReflectionProbe.interior].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "reflection_probe_set_cull_mask" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "probe" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "layers" type= "int" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the render cull mask for this reflection probe. Only instances with a matching cull mask will be rendered by this probe. Equivalent to [member ReflectionProbe.cull_mask].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "reflection_probe_set_enable_box_projection" >
<return type= "void" >
2018-07-26 11:56:21 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "probe" type= "RID" >
2018-07-26 11:56:21 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enable" type= "bool" >
2018-07-26 11:56:21 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
If [code]true[/code], uses box projection. This can make reflections look more correct in certain situations. Equivalent to [member ReflectionProbe.box_projection].
2018-07-26 11:56:21 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "reflection_probe_set_enable_shadows" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "probe" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enable" type= "bool" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
If [code]true[/code], computes shadows in the reflection probe. This makes the reflection much slower to compute. Equivalent to [member ReflectionProbe.enable_shadows].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "reflection_probe_set_extents" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "probe" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "extents" type= "Vector3" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the size of the area that the reflection probe will capture. Equivalent to [member ReflectionProbe.extents].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "reflection_probe_set_intensity" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "probe" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "intensity" type= "float" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the intensity of the reflection probe. Intensity modulates the strength of the reflection. Equivalent to [member ReflectionProbe.intensity].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "reflection_probe_set_lod_threshold" >
2018-07-26 11:56:21 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "probe" type= "RID" >
2018-07-26 11:56:21 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "pixels" type= "float" >
2018-07-26 11:56:21 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "reflection_probe_set_max_distance" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "probe" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "distance" type= "float" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the max distance away from the probe an object can be before it is culled. Equivalent to [member ReflectionProbe.max_distance].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "reflection_probe_set_origin_offset" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "probe" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "offset" type= "Vector3" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the origin offset to be used when this reflection probe is in box project mode. Equivalent to [member ReflectionProbe.origin_offset].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "reflection_probe_set_resolution" >
2018-07-26 11:56:21 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "probe" type= "RID" >
2018-07-26 11:56:21 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "resolution" type= "int" >
2018-07-26 11:56:21 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "reflection_probe_set_update_mode" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "probe" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "mode" type= "int" enum= "RenderingServer.ReflectionProbeUpdateMode" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets how often the reflection probe updates. Can either be once or every frame. See [enum ReflectionProbeUpdateMode] for options.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "request_frame_drawn_callback" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "where" type= "Object" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "method" type= "StringName" >
</argument>
<argument index= "2" name= "userdata" type= "Variant" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Schedules a callback to the corresponding named [code]method[/code] on [code]where[/code] after a frame has been drawn.
The callback method must use only 1 argument which will be called with [code]userdata[/code].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "scenario_create" >
2021-04-20 18:40:24 +02:00
<return type= "RID" >
</return>
<description >
2021-07-01 04:17:47 +02:00
Creates a scenario and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]scenario_*[/code] RenderingServer functions.
Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method.
The scenario is the 3D world that all the visual instances exist in.
2021-04-20 18:40:24 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "scenario_set_camera_effects" >
2021-04-20 18:40:24 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "scenario" type= "RID" >
2021-04-20 18:40:24 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "effects" type= "RID" >
2021-04-20 18:40:24 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "scenario_set_environment" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "scenario" type= "RID" >
</argument>
<argument index= "1" name= "environment" type= "RID" >
</argument>
2018-02-19 10:47:16 +01:00
<description >
2021-07-01 04:17:47 +02:00
Sets the environment that will be used with this scenario.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "scenario_set_fallback_environment" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "scenario" type= "RID" >
</argument>
<argument index= "1" name= "environment" type= "RID" >
</argument>
2018-02-19 10:47:16 +01:00
<description >
2021-07-01 04:17:47 +02:00
Sets the fallback environment to be used by this scenario. The fallback environment is used if no environment is set. Internally, this is used by the editor to provide a default environment.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "screen_space_roughness_limiter_set_active" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "enable" type= "bool" >
</argument>
<argument index= "1" name= "amount" type= "float" >
</argument>
<argument index= "2" name= "limit" type= "float" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "set_boot_image" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "image" type= "Image" >
</argument>
<argument index= "1" name= "color" type= "Color" >
</argument>
<argument index= "2" name= "scale" type= "bool" >
</argument>
<argument index= "3" name= "use_filter" type= "bool" default= "true" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets a boot image. The color defines the background color. If [code]scale[/code] is [code]true[/code], the image will be scaled to fit the screen size. If [code]use_filter[/code] is [code]true[/code], the image will be scaled with linear interpolation. If [code]use_filter[/code] is [code]false[/code], the image will be scaled with nearest-neighbor interpolation.
2018-02-19 10:47:16 +01:00
</description>
2019-11-11 17:25:05 +01:00
</method>
2021-07-01 04:17:47 +02:00
<method name= "set_debug_generate_wireframes" >
<return type= "void" >
2019-11-11 17:25:05 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "generate" type= "bool" >
2019-11-11 17:25:05 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
If [code]true[/code], the engine will generate wireframes for use with the wireframe debug mode.
2019-11-11 17:25:05 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "set_default_clear_color" >
2019-11-11 17:25:05 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "color" type= "Color" >
2019-11-11 17:25:05 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the default clear color which is used when a specific clear color has not been selected.
2019-11-11 17:25:05 +01:00
</description>
2018-02-19 10:47:16 +01:00
</method>
2021-07-01 04:17:47 +02:00
<method name= "shader_create" >
<return type= "RID" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<description >
Creates an empty shader and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]shader_*[/code] RenderingServer functions.
Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method.
</description>
</method>
<method name= "shader_get_code" qualifiers= "const" >
<return type= "String" >
</return>
<argument index= "0" name= "shader" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Returns a shader's code.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "shader_get_default_texture_param" qualifiers= "const" >
<return type= "RID" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "shader" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "param" type= "StringName" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Returns a default texture from a shader searched by name.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "shader_get_param_default" qualifiers= "const" >
<return type= "Variant" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "shader" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "param" type= "StringName" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "shader_get_param_list" qualifiers= "const" >
<return type= "Dictionary[]" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "shader" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Returns the parameters of a shader.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "shader_set_default_texture_param" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "shader" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "param" type= "StringName" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "2" name= "texture" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets a shader's default texture. Overwrites the texture given by name.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "shadows_quality_set" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "quality" type= "int" enum= "RenderingServer.ShadowQuality" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "skeleton_allocate_data" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "skeleton" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "bones" type= "int" >
</argument>
<argument index= "2" name= "is_2d_skeleton" type= "bool" default= "false" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "skeleton_bone_get_transform" qualifiers= "const" >
<return type= "Transform3D" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "skeleton" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "bone" type= "int" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Returns the [Transform3D] set for a specific bone of this skeleton.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "skeleton_bone_get_transform_2d" qualifiers= "const" >
<return type= "Transform2D" >
</return>
<argument index= "0" name= "skeleton" type= "RID" >
</argument>
<argument index= "1" name= "bone" type= "int" >
</argument>
<description >
Returns the [Transform2D] set for a specific bone of this skeleton.
</description>
</method>
<method name= "skeleton_bone_set_transform" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "skeleton" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "bone" type= "int" >
</argument>
<argument index= "2" name= "transform" type= "Transform3D" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the [Transform3D] for a specific bone of this skeleton.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "skeleton_bone_set_transform_2d" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "skeleton" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "bone" type= "int" >
</argument>
<argument index= "2" name= "transform" type= "Transform2D" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the [Transform2D] for a specific bone of this skeleton.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "skeleton_create" >
<return type= "RID" >
2018-02-19 10:47:16 +01:00
</return>
<description >
2021-07-01 04:17:47 +02:00
Creates a skeleton and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]skeleton_*[/code] RenderingServer functions.
Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "skeleton_get_bone_count" qualifiers= "const" >
<return type= "int" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "skeleton" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Returns the number of bones allocated for this skeleton.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "skeleton_set_base_transform_2d" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "skeleton" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "base_transform" type= "Transform2D" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "sky_bake_panorama" >
<return type= "Image" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "sky" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "energy" type= "float" >
</argument>
<argument index= "2" name= "bake_irradiance" type= "bool" >
</argument>
<argument index= "3" name= "size" type= "Vector2i" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "sky_create" >
<return type= "RID" >
2017-10-21 12:02:08 +02:00
</return>
<description >
2021-07-01 04:17:47 +02:00
Creates an empty sky and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]sky_*[/code] RenderingServer functions.
Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "sky_set_material" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "sky" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "material" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2017-10-21 12:02:08 +02:00
<description >
2021-07-01 04:17:47 +02:00
Sets the material that the sky uses to render the background and reflection maps.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "sky_set_mode" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "sky" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "mode" type= "int" enum= "RenderingServer.SkyMode" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "sky_set_radiance_size" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "sky" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "radiance_size" type= "int" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "spot_light_create" >
2018-02-19 10:47:16 +01:00
<return type= "RID" >
2017-10-21 12:02:08 +02:00
</return>
<description >
2021-07-01 04:17:47 +02:00
Creates a spot light and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID can be used in most [code]light_*[/code] RenderingServer functions.
2020-03-30 18:22:57 +02:00
Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method.
2021-07-01 04:17:47 +02:00
To place in a scene, attach this spot light to an instance using [method instance_set_base] using the returned RID.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "sub_surface_scattering_set_quality" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "quality" type= "int" enum= "RenderingServer.SubSurfaceScatteringQuality" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "sub_surface_scattering_set_scale" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "scale" type= "float" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "depth_scale" type= "float" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "texture_2d_create" >
<return type= "RID" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "image" type= "Image" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "texture_2d_get" qualifiers= "const" >
<return type= "Image" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "texture" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "texture_2d_layer_get" qualifiers= "const" >
<return type= "Image" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "texture" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "layer" type= "int" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "texture_2d_layered_create" >
<return type= "RID" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "layers" type= "Image[]" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "layered_type" type= "int" enum= "RenderingServer.TextureLayeredType" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "texture_2d_layered_placeholder_create" >
<return type= "RID" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "layered_type" type= "int" enum= "RenderingServer.TextureLayeredType" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "texture_2d_placeholder_create" >
<return type= "RID" >
2017-10-21 12:02:08 +02:00
</return>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "texture_2d_update" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "texture" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "image" type= "Image" >
</argument>
<argument index= "2" name= "layer" type= "int" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "texture_3d_create" >
<return type= "RID" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "format" type= "int" enum= "Image.Format" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "width" type= "int" >
</argument>
<argument index= "2" name= "height" type= "int" >
</argument>
<argument index= "3" name= "depth" type= "int" >
</argument>
<argument index= "4" name= "mipmaps" type= "bool" >
</argument>
<argument index= "5" name= "data" type= "Image[]" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "texture_3d_get" qualifiers= "const" >
<return type= "Image[]" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "texture" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "texture_3d_placeholder_create" >
<return type= "RID" >
2017-10-21 12:02:08 +02:00
</return>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "texture_3d_update" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "texture" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "data" type= "Image[]" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<description >
</description>
</method>
<method name= "texture_get_path" qualifiers= "const" >
<return type= "String" >
</return>
<argument index= "0" name= "texture" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "texture_proxy_create" >
2017-10-21 12:02:08 +02:00
<return type= "RID" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "base" type= "RID" >
</argument>
2017-10-21 12:02:08 +02:00
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "texture_proxy_update" >
2021-04-20 18:40:24 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "texture" type= "RID" >
2021-04-20 18:40:24 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "proxy_to" type= "RID" >
2021-04-20 18:40:24 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "texture_replace" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "texture" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "by_texture" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "texture_set_force_redraw_if_visible" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "texture" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enable" type= "bool" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "texture_set_path" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "texture" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "path" type= "String" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "texture_set_size_override" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "texture" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "width" type= "int" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "2" name= "height" type= "int" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<description >
</description>
</method>
<method name= "viewport_attach_camera" >
<return type= "void" >
</return>
<argument index= "0" name= "viewport" type= "RID" >
</argument>
<argument index= "1" name= "camera" type= "RID" >
2019-06-13 22:37:19 +02:00
</argument>
2017-10-21 12:02:08 +02:00
<description >
2021-07-01 04:17:47 +02:00
Sets a viewport's camera.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_attach_canvas" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "viewport" type= "RID" >
</argument>
<argument index= "1" name= "canvas" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets a viewport's canvas.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_attach_to_screen" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "viewport" type= "RID" >
</argument>
<argument index= "1" name= "rect" type= "Rect2" default= "Rect2(0, 0, 0, 0)" >
</argument>
<argument index= "2" name= "screen" type= "int" default= "0" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Copies the viewport to a region of the screen specified by [code]rect[/code]. If [method viewport_set_render_direct_to_screen] is [code]true[/code], then the viewport does not use a framebuffer and the contents of the viewport are rendered directly to screen. However, note that the root viewport is drawn last, therefore it will draw over the screen. Accordingly, you must set the root viewport to an area that does not cover the area that you have attached this viewport to.
For example, you can set the root viewport to not render at all with the following code:
FIXME: The method seems to be non-existent.
[codeblocks]
[gdscript]
func _ready():
get_viewport().set_attach_to_screen_rect(Rect2())
$Viewport.set_attach_to_screen_rect(Rect2(0, 0, 600, 600))
[/gdscript]
[/codeblocks]
Using this can result in significant optimization, especially on lower-end devices. However, it comes at the cost of having to manage your viewports manually. For a further optimization see, [method viewport_set_render_direct_to_screen].
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_create" >
2017-10-21 12:02:08 +02:00
<return type= "RID" >
</return>
<description >
2021-07-01 04:17:47 +02:00
Creates an empty viewport and adds it to the RenderingServer. It can be accessed with the RID that is returned. This RID will be used in all [code]viewport_*[/code] RenderingServer functions.
2020-03-30 18:22:57 +02:00
Once finished with your RID, you will want to free the RID using the RenderingServer's [method free_rid] static method.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_get_measured_render_time_cpu" qualifiers= "const" >
<return type= "float" >
</return>
<argument index= "0" name= "viewport" type= "RID" >
</argument>
<description >
</description>
</method>
<method name= "viewport_get_measured_render_time_gpu" qualifiers= "const" >
<return type= "float" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "viewport" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_get_render_info" >
<return type= "int" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "viewport" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "info" type= "int" enum= "RenderingServer.ViewportRenderInfo" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Returns a viewport's render information. For options, see the [enum ViewportRenderInfo] constants.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_get_texture" qualifiers= "const" >
<return type= "RID" >
2020-02-12 09:59:06 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "viewport" type= "RID" >
2020-02-12 09:59:06 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Returns the viewport's last rendered frame.
2020-02-12 09:59:06 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_remove_canvas" >
<return type= "void" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "viewport" type= "RID" >
</argument>
<argument index= "1" name= "canvas" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Detaches a viewport from a canvas and vice versa.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_active" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "viewport" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "active" type= "bool" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
If [code]true[/code], sets the viewport active, else sets it inactive.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_canvas_stacking" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "viewport" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "canvas" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "2" name= "layer" type= "int" >
</argument>
<argument index= "3" name= "sublayer" type= "int" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the stacking order for a viewport's canvas.
[code]layer[/code] is the actual canvas layer, while [code]sublayer[/code] specifies the stacking order of the canvas among those in the same layer.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_canvas_transform" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "viewport" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "canvas" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "2" name= "offset" type= "Transform2D" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the transformation of a viewport's canvas.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_clear_mode" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "viewport" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "clear_mode" type= "int" enum= "RenderingServer.ViewportClearMode" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the clear mode of a viewport. See [enum ViewportClearMode] for options.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_debug_draw" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "viewport" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "draw" type= "int" enum= "RenderingServer.ViewportDebugDraw" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the debug draw mode of a viewport. See [enum ViewportDebugDraw] for options.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_default_canvas_item_texture_filter" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "viewport" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "filter" type= "int" enum= "RenderingServer.CanvasItemTextureFilter" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_default_canvas_item_texture_repeat" >
2018-02-19 10:47:16 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "viewport" type= "RID" >
2018-02-19 10:47:16 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "repeat" type= "int" enum= "RenderingServer.CanvasItemTextureRepeat" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_disable_2d" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "viewport" type= "RID" >
</argument>
<argument index= "1" name= "disable" type= "bool" >
</argument>
2018-02-19 10:47:16 +01:00
<description >
2021-07-01 04:17:47 +02:00
If [code]true[/code], the viewport's canvas is not rendered.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_disable_3d" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "viewport" type= "RID" >
</argument>
<argument index= "1" name= "disable" type= "bool" >
2018-02-19 10:47:16 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_disable_environment" >
<return type= "void" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "viewport" type= "RID" >
</argument>
<argument index= "1" name= "disabled" type= "bool" >
</argument>
2017-10-21 12:02:08 +02:00
<description >
2021-07-01 04:17:47 +02:00
If [code]true[/code], rendering of a viewport's environment is disabled.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_global_canvas_transform" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "viewport" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "transform" type= "Transform2D" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the viewport's global transformation matrix.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_measure_render_time" >
<return type= "void" >
2018-02-19 10:47:16 +01:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "viewport" type= "RID" >
</argument>
<argument index= "1" name= "enable" type= "bool" >
</argument>
2018-02-19 10:47:16 +01:00
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_msaa" >
<return type= "void" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "viewport" type= "RID" >
</argument>
<argument index= "1" name= "msaa" type= "int" enum= "RenderingServer.ViewportMSAA" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the anti-aliasing mode. See [enum ViewportMSAA] for options.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_occlusion_culling_build_quality" >
<return type= "void" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "quality" type= "int" enum= "RenderingServer.ViewportOcclusionCullingBuildQuality" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_occlusion_rays_per_thread" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "rays_per_thread" type= "int" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_parent_viewport" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
<argument index= "0" name= "viewport" type= "RID" >
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "parent_viewport" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the viewport's parent to another viewport.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_render_direct_to_screen" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
<argument index= "0" name= "viewport" type= "RID" >
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enabled" type= "bool" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
If [code]true[/code], render the contents of the viewport directly to screen. This allows a low-level optimization where you can skip drawing a viewport to the root viewport. While this optimization can result in a significant increase in speed (especially on older devices), it comes at a cost of usability. When this is enabled, you cannot read from the viewport or from the [code]SCREEN_TEXTURE[/code]. You also lose the benefit of certain window settings, such as the various stretch modes. Another consequence to be aware of is that in 2D the rendering happens in window coordinates, so if you have a viewport that is double the size of the window, and you set this, then only the portion that fits within the window will be drawn, no automatic scaling is possible, even if your game scene is significantly larger than the window size.
2017-09-12 22:42:36 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_scenario" >
<return type= "void" >
2021-01-04 14:33:44 +01:00
</return>
<argument index= "0" name= "viewport" type= "RID" >
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "scenario" type= "RID" >
</argument>
2021-01-04 14:33:44 +01:00
<description >
2021-07-01 04:17:47 +02:00
Sets a viewport's scenario.
The scenario contains information about environment information, reflection atlas etc.
2021-01-04 14:33:44 +01:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_screen_space_aa" >
<return type= "void" >
2021-01-04 14:33:44 +01:00
</return>
<argument index= "0" name= "viewport" type= "RID" >
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "mode" type= "int" enum= "RenderingServer.ViewportScreenSpaceAA" >
</argument>
2021-01-04 14:33:44 +01:00
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_sdf_oversize_and_scale" >
<return type= "void" >
2017-10-21 12:02:08 +02:00
</return>
<argument index= "0" name= "viewport" type= "RID" >
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "oversize" type= "int" enum= "RenderingServer.ViewportSDFOversize" >
</argument>
<argument index= "2" name= "scale" type= "int" enum= "RenderingServer.ViewportSDFScale" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_shadow_atlas_quadrant_subdivision" >
<return type= "void" >
2017-09-12 22:42:36 +02:00
</return>
2017-10-21 12:02:08 +02:00
<argument index= "0" name= "viewport" type= "RID" >
2017-09-12 22:42:36 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "quadrant" type= "int" >
</argument>
<argument index= "2" name= "subdivision" type= "int" >
</argument>
2017-10-21 12:02:08 +02:00
<description >
2021-07-01 04:17:47 +02:00
Sets the shadow atlas quadrant's subdivision.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_shadow_atlas_size" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
<argument index= "0" name= "viewport" type= "RID" >
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "size" type= "int" >
</argument>
<argument index= "2" name= "use_16_bits" type= "bool" default= "false" >
2017-09-12 22:42:36 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the size of the shadow atlas's images (used for omni and spot lights). The value will be rounded up to the nearest power of 2.
2017-09-12 22:42:36 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_size" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
2017-09-12 22:42:36 +02:00
</return>
2017-10-21 12:02:08 +02:00
<argument index= "0" name= "viewport" type= "RID" >
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "width" type= "int" >
</argument>
<argument index= "2" name= "height" type= "int" >
2017-09-12 22:42:36 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets the viewport's width and height.
2017-09-12 22:42:36 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_snap_2d_transforms_to_pixel" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
2017-09-12 22:42:36 +02:00
</return>
2017-10-21 12:02:08 +02:00
<argument index= "0" name= "viewport" type= "RID" >
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enabled" type= "bool" >
2018-10-30 21:53:00 +01:00
</argument>
2017-09-12 22:42:36 +02:00
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_snap_2d_vertices_to_pixel" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
2017-09-12 22:42:36 +02:00
</return>
2017-10-21 12:02:08 +02:00
<argument index= "0" name= "viewport" type= "RID" >
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enabled" type= "bool" >
2017-09-12 22:42:36 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_transparent_background" >
2017-09-12 22:42:36 +02:00
<return type= "void" >
</return>
2017-10-21 12:02:08 +02:00
<argument index= "0" name= "viewport" type= "RID" >
2017-09-12 22:42:36 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enabled" type= "bool" >
2017-09-12 22:42:36 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
If [code]true[/code], the viewport renders its background as transparent.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_update_mode" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
<argument index= "0" name= "viewport" type= "RID" >
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "update_mode" type= "int" enum= "RenderingServer.ViewportUpdateMode" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
Sets when the viewport should be updated. See [enum ViewportUpdateMode] constants for options.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_use_debanding" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
<argument index= "0" name= "viewport" type= "RID" >
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enable" type= "bool" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_use_occlusion_culling" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
<argument index= "0" name= "viewport" type= "RID" >
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enable" type= "bool" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "viewport_set_use_xr" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
<argument index= "0" name= "viewport" type= "RID" >
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "use_xr" type= "bool" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
2021-07-01 04:17:47 +02:00
If [code]true[/code], the viewport uses augmented or virtual reality technologies. See [XRInterface].
</description>
</method>
<method name= "visibility_notifier_create" >
<return type= "RID" >
</return>
<description >
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "visibility_notifier_set_aabb" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "notifier" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "aabb" type= "AABB" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "visibility_notifier_set_callbacks" >
2021-01-04 14:33:44 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "notifier" type= "RID" >
2021-01-04 14:33:44 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enter_callable" type= "Callable" >
</argument>
<argument index= "2" name= "exit_callable" type= "Callable" >
2021-01-04 14:33:44 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "voxel_gi_allocate_data" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "voxel_gi" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "to_cell_xform" type= "Transform3D" >
</argument>
<argument index= "2" name= "aabb" type= "AABB" >
</argument>
<argument index= "3" name= "octree_size" type= "Vector3i" >
</argument>
<argument index= "4" name= "octree_cells" type= "PackedByteArray" >
</argument>
<argument index= "5" name= "data_cells" type= "PackedByteArray" >
</argument>
<argument index= "6" name= "distance_field" type= "PackedByteArray" >
</argument>
<argument index= "7" name= "level_counts" type= "PackedInt32Array" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "voxel_gi_create" >
<return type= "RID" >
2021-04-20 18:40:24 +02:00
</return>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "voxel_gi_get_data_cells" qualifiers= "const" >
<return type= "PackedByteArray" >
2021-04-20 18:40:24 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "voxel_gi" type= "RID" >
2021-04-20 18:40:24 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "voxel_gi_get_distance_field" qualifiers= "const" >
<return type= "PackedByteArray" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "voxel_gi" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "voxel_gi_get_level_counts" qualifiers= "const" >
<return type= "PackedInt32Array" >
2019-05-08 20:25:34 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "voxel_gi" type= "RID" >
2019-05-08 20:25:34 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<description >
</description>
</method>
<method name= "voxel_gi_get_octree_cells" qualifiers= "const" >
<return type= "PackedByteArray" >
</return>
<argument index= "0" name= "voxel_gi" type= "RID" >
2019-05-08 20:25:34 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "voxel_gi_get_octree_size" qualifiers= "const" >
<return type= "Vector3i" >
2017-10-21 12:02:08 +02:00
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "voxel_gi" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<description >
</description>
</method>
<method name= "voxel_gi_get_to_cell_xform" qualifiers= "const" >
<return type= "Transform3D" >
</return>
<argument index= "0" name= "voxel_gi" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "voxel_gi_set_bias" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "voxel_gi" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "bias" type= "float" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "voxel_gi_set_dynamic_range" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "voxel_gi" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "range" type= "float" >
2021-01-28 11:26:37 +01:00
</argument>
2017-10-21 12:02:08 +02:00
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "voxel_gi_set_energy" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "voxel_gi" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "energy" type= "float" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "voxel_gi_set_interior" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "voxel_gi" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enable" type= "bool" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "voxel_gi_set_normal_bias" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "voxel_gi" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "bias" type= "float" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "voxel_gi_set_propagation" >
2020-11-04 15:38:26 +01:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "voxel_gi" type= "RID" >
2020-11-04 15:38:26 +01:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "amount" type= "float" >
2020-11-04 15:38:26 +01:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "voxel_gi_set_quality" >
2021-04-20 18:40:24 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "quality" type= "int" enum= "RenderingServer.VoxelGIQuality" >
2021-04-20 18:40:24 +02:00
</argument>
<description >
</description>
</method>
2021-07-01 04:17:47 +02:00
<method name= "voxel_gi_set_use_two_bounces" >
2017-10-21 12:02:08 +02:00
<return type= "void" >
</return>
2021-07-01 04:17:47 +02:00
<argument index= "0" name= "voxel_gi" type= "RID" >
2017-10-21 12:02:08 +02:00
</argument>
2021-07-01 04:17:47 +02:00
<argument index= "1" name= "enable" type= "bool" >
2017-10-21 12:02:08 +02:00
</argument>
<description >
</description>
</method>
2017-09-12 22:42:36 +02:00
</methods>
2020-06-17 15:06:13 +02:00
<members >
<member name= "render_loop_enabled" type= "bool" setter= "set_render_loop_enabled" getter= "is_render_loop_enabled" >
If [code]false[/code], disables rendering completely, but the engine logic is still being processed. You can call [method force_draw] to draw a frame even with rendering disabled.
</member>
</members>
2017-11-15 20:35:18 +01:00
<signals >
2018-07-26 11:56:21 +02:00
<signal name= "frame_post_draw" >
<description >
2020-03-30 18:22:57 +02:00
Emitted at the end of the frame, after the RenderingServer has finished updating all the Viewports.
2018-07-26 11:56:21 +02:00
</description>
</signal>
<signal name= "frame_pre_draw" >
2017-11-15 20:35:18 +01:00
<description >
2020-03-30 18:22:57 +02:00
Emitted at the beginning of the frame, before the RenderingServer updates all the Viewports.
2017-11-15 20:35:18 +01:00
</description>
</signal>
</signals>
2017-09-12 22:42:36 +02:00
<constants >
2017-11-24 23:16:30 +01:00
<constant name= "NO_INDEX_ARRAY" value= "-1" >
2017-11-26 16:37:37 +01:00
Marks an error that shows that the index array is empty.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_WEIGHTS_SIZE" value= "4" >
2020-01-06 00:36:50 +01:00
Number of weights/bones per vertex.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "CANVAS_ITEM_Z_MIN" value= "-4096" >
2017-11-26 16:37:37 +01:00
The minimum Z-layer for canvas items.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "CANVAS_ITEM_Z_MAX" value= "4096" >
2017-11-26 16:37:37 +01:00
The maximum Z-layer for canvas items.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "MAX_GLOW_LEVELS" value= "7" >
2020-01-06 00:36:50 +01:00
Max number of glow levels that can be used with glow post-process effect.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "MAX_CURSORS" value= "8" >
2020-01-06 00:36:50 +01:00
Unused enum in Godot 3.x.
2017-10-21 12:02:08 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "MAX_2D_DIRECTIONAL_LIGHTS" value= "8" >
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "TEXTURE_LAYERED_2D_ARRAY" value= "0" enum= "TextureLayeredType" >
2017-10-21 12:02:08 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "TEXTURE_LAYERED_CUBEMAP" value= "1" enum= "TextureLayeredType" >
2017-10-21 12:02:08 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "TEXTURE_LAYERED_CUBEMAP_ARRAY" value= "2" enum= "TextureLayeredType" >
2017-10-21 12:02:08 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "CUBEMAP_LAYER_LEFT" value= "0" enum= "CubeMapLayer" >
2017-10-21 12:02:08 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "CUBEMAP_LAYER_RIGHT" value= "1" enum= "CubeMapLayer" >
2017-10-21 12:02:08 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "CUBEMAP_LAYER_BOTTOM" value= "2" enum= "CubeMapLayer" >
2018-08-21 00:35:30 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "CUBEMAP_LAYER_TOP" value= "3" enum= "CubeMapLayer" >
2018-08-21 00:35:30 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "CUBEMAP_LAYER_FRONT" value= "4" enum= "CubeMapLayer" >
2018-08-21 00:35:30 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "CUBEMAP_LAYER_BACK" value= "5" enum= "CubeMapLayer" >
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "SHADER_SPATIAL" value= "0" enum= "ShaderMode" >
2017-11-26 16:37:37 +01:00
Shader is a 3D shader.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "SHADER_CANVAS_ITEM" value= "1" enum= "ShaderMode" >
2017-11-26 16:37:37 +01:00
Shader is a 2D shader.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "SHADER_PARTICLES" value= "2" enum= "ShaderMode" >
2017-11-26 16:37:37 +01:00
Shader is a particle shader.
2017-10-21 12:02:08 +02:00
</constant>
2020-03-20 01:32:19 +01:00
<constant name= "SHADER_SKY" value= "3" enum= "ShaderMode" >
Shader is a sky shader.
</constant>
<constant name= "SHADER_MAX" value= "4" enum= "ShaderMode" >
2019-06-27 11:10:53 +02:00
Represents the size of the [enum ShaderMode] enum.
2017-10-21 12:02:08 +02:00
</constant>
2020-04-20 11:48:00 +02:00
<constant name= "MATERIAL_RENDER_PRIORITY_MIN" value= "-128" >
The minimum renderpriority of all materials.
</constant>
<constant name= "MATERIAL_RENDER_PRIORITY_MAX" value= "127" >
The maximum renderpriority of all materials.
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_VERTEX" value= "0" enum= "ArrayType" >
2017-11-26 16:37:37 +01:00
Array is a vertex array.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_NORMAL" value= "1" enum= "ArrayType" >
2017-11-26 16:37:37 +01:00
Array is a normal array.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_TANGENT" value= "2" enum= "ArrayType" >
2017-11-26 16:37:37 +01:00
Array is a tangent array.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COLOR" value= "3" enum= "ArrayType" >
2017-11-26 16:37:37 +01:00
Array is a color array.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_TEX_UV" value= "4" enum= "ArrayType" >
2019-06-22 01:04:47 +02:00
Array is an UV coordinates array.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_TEX_UV2" value= "5" enum= "ArrayType" >
2019-06-22 01:04:47 +02:00
Array is an UV coordinates array for the second UV coordinates.
2017-10-21 12:02:08 +02:00
</constant>
2020-12-04 15:54:48 +01:00
<constant name= "ARRAY_CUSTOM0" value= "6" enum= "ArrayType" >
</constant>
<constant name= "ARRAY_CUSTOM1" value= "7" enum= "ArrayType" >
</constant>
<constant name= "ARRAY_CUSTOM2" value= "8" enum= "ArrayType" >
</constant>
<constant name= "ARRAY_CUSTOM3" value= "9" enum= "ArrayType" >
</constant>
<constant name= "ARRAY_BONES" value= "10" enum= "ArrayType" >
2017-11-26 16:37:37 +01:00
Array contains bone information.
2017-10-21 12:02:08 +02:00
</constant>
2020-12-04 15:54:48 +01:00
<constant name= "ARRAY_WEIGHTS" value= "11" enum= "ArrayType" >
2017-11-26 16:37:37 +01:00
Array is weight information.
2017-10-21 12:02:08 +02:00
</constant>
2020-12-04 15:54:48 +01:00
<constant name= "ARRAY_INDEX" value= "12" enum= "ArrayType" >
2017-11-26 16:37:37 +01:00
Array is index array.
2017-10-21 12:02:08 +02:00
</constant>
2020-12-04 15:54:48 +01:00
<constant name= "ARRAY_MAX" value= "13" enum= "ArrayType" >
2019-06-27 11:10:53 +02:00
Represents the size of the [enum ArrayType] enum.
2017-10-21 12:02:08 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ARRAY_CUSTOM_COUNT" value= "4" >
</constant>
<constant name= "ARRAY_CUSTOM_RGBA8_UNORM" value= "0" enum= "ArrayCustomFormat" >
</constant>
<constant name= "ARRAY_CUSTOM_RGBA8_SNORM" value= "1" enum= "ArrayCustomFormat" >
</constant>
<constant name= "ARRAY_CUSTOM_RG_HALF" value= "2" enum= "ArrayCustomFormat" >
</constant>
<constant name= "ARRAY_CUSTOM_RGBA_HALF" value= "3" enum= "ArrayCustomFormat" >
</constant>
<constant name= "ARRAY_CUSTOM_R_FLOAT" value= "4" enum= "ArrayCustomFormat" >
</constant>
<constant name= "ARRAY_CUSTOM_RG_FLOAT" value= "5" enum= "ArrayCustomFormat" >
</constant>
<constant name= "ARRAY_CUSTOM_RGB_FLOAT" value= "6" enum= "ArrayCustomFormat" >
</constant>
<constant name= "ARRAY_CUSTOM_RGBA_FLOAT" value= "7" enum= "ArrayCustomFormat" >
</constant>
<constant name= "ARRAY_CUSTOM_MAX" value= "8" enum= "ArrayCustomFormat" >
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FORMAT_VERTEX" value= "1" enum= "ArrayFormat" >
2017-11-26 16:37:37 +01:00
Flag used to mark a vertex array.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FORMAT_NORMAL" value= "2" enum= "ArrayFormat" >
2017-11-26 16:37:37 +01:00
Flag used to mark a normal array.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FORMAT_TANGENT" value= "4" enum= "ArrayFormat" >
2017-11-26 16:37:37 +01:00
Flag used to mark a tangent array.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FORMAT_COLOR" value= "8" enum= "ArrayFormat" >
2017-11-26 16:37:37 +01:00
Flag used to mark a color array.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FORMAT_TEX_UV" value= "16" enum= "ArrayFormat" >
2019-06-22 01:04:47 +02:00
Flag used to mark an UV coordinates array.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FORMAT_TEX_UV2" value= "32" enum= "ArrayFormat" >
2019-06-22 01:04:47 +02:00
Flag used to mark an UV coordinates array for the second UV coordinates.
2017-10-21 12:02:08 +02:00
</constant>
2020-12-04 15:54:48 +01:00
<constant name= "ARRAY_FORMAT_CUSTOM0" value= "64" enum= "ArrayFormat" >
</constant>
<constant name= "ARRAY_FORMAT_CUSTOM1" value= "128" enum= "ArrayFormat" >
</constant>
<constant name= "ARRAY_FORMAT_CUSTOM2" value= "256" enum= "ArrayFormat" >
</constant>
<constant name= "ARRAY_FORMAT_CUSTOM3" value= "512" enum= "ArrayFormat" >
</constant>
<constant name= "ARRAY_FORMAT_BONES" value= "1024" enum= "ArrayFormat" >
2017-11-26 16:37:37 +01:00
Flag used to mark a bone information array.
2017-10-21 12:02:08 +02:00
</constant>
2020-12-04 15:54:48 +01:00
<constant name= "ARRAY_FORMAT_WEIGHTS" value= "2048" enum= "ArrayFormat" >
2017-11-26 16:37:37 +01:00
Flag used to mark a weights array.
2017-10-21 12:02:08 +02:00
</constant>
2020-12-04 15:54:48 +01:00
<constant name= "ARRAY_FORMAT_INDEX" value= "4096" enum= "ArrayFormat" >
2019-06-22 01:04:47 +02:00
Flag used to mark an index array.
2017-10-21 12:02:08 +02:00
</constant>
2020-12-05 01:26:29 +01:00
<constant name= "ARRAY_FORMAT_BLEND_SHAPE_MASK" value= "2147475463" enum= "ArrayFormat" >
2020-12-04 15:54:48 +01:00
</constant>
<constant name= "ARRAY_FORMAT_CUSTOM_BASE" value= "13" enum= "ArrayFormat" >
2017-10-21 12:02:08 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ARRAY_FORMAT_CUSTOM_BITS" value= "3" enum= "ArrayFormat" >
</constant>
2020-12-04 15:54:48 +01:00
<constant name= "ARRAY_FORMAT_CUSTOM0_SHIFT" value= "13" enum= "ArrayFormat" >
2017-10-21 12:02:08 +02:00
</constant>
2020-12-04 15:54:48 +01:00
<constant name= "ARRAY_FORMAT_CUSTOM1_SHIFT" value= "16" enum= "ArrayFormat" >
2017-10-21 12:02:08 +02:00
</constant>
2020-12-04 15:54:48 +01:00
<constant name= "ARRAY_FORMAT_CUSTOM2_SHIFT" value= "19" enum= "ArrayFormat" >
2017-10-21 12:02:08 +02:00
</constant>
2020-12-04 15:54:48 +01:00
<constant name= "ARRAY_FORMAT_CUSTOM3_SHIFT" value= "22" enum= "ArrayFormat" >
2017-10-21 12:02:08 +02:00
</constant>
2020-12-04 15:54:48 +01:00
<constant name= "ARRAY_FORMAT_CUSTOM_MASK" value= "7" enum= "ArrayFormat" >
2017-10-21 12:02:08 +02:00
</constant>
2020-12-04 15:54:48 +01:00
<constant name= "ARRAY_COMPRESS_FLAGS_BASE" value= "25" enum= "ArrayFormat" >
2020-04-20 11:48:00 +02:00
</constant>
2020-12-04 15:54:48 +01:00
<constant name= "ARRAY_FLAG_USE_2D_VERTICES" value= "33554432" enum= "ArrayFormat" >
2017-11-26 16:37:37 +01:00
Flag used to mark that the array contains 2D vertices.
2017-10-21 12:02:08 +02:00
</constant>
2020-12-04 15:54:48 +01:00
<constant name= "ARRAY_FLAG_USE_DYNAMIC_UPDATE" value= "67108864" enum= "ArrayFormat" >
</constant>
<constant name= "ARRAY_FLAG_USE_8_BONE_WEIGHTS" value= "134217728" enum= "ArrayFormat" >
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PRIMITIVE_POINTS" value= "0" enum= "PrimitiveType" >
2017-11-26 16:37:37 +01:00
Primitive to draw consists of points.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PRIMITIVE_LINES" value= "1" enum= "PrimitiveType" >
2017-11-26 16:37:37 +01:00
Primitive to draw consists of lines.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PRIMITIVE_LINE_STRIP" value= "2" enum= "PrimitiveType" >
2017-11-26 16:37:37 +01:00
Primitive to draw consists of a line strip from start to end.
2017-10-21 12:02:08 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "PRIMITIVE_TRIANGLES" value= "3" enum= "PrimitiveType" >
2017-11-26 16:37:37 +01:00
Primitive to draw consists of triangles.
2017-10-21 12:02:08 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "PRIMITIVE_TRIANGLE_STRIP" value= "4" enum= "PrimitiveType" >
2018-01-18 21:37:17 +01:00
Primitive to draw consists of a triangle strip (the last 3 vertices are always combined to make a triangle).
2017-10-21 12:02:08 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "PRIMITIVE_MAX" value= "5" enum= "PrimitiveType" >
2019-06-27 11:10:53 +02:00
Represents the size of the [enum PrimitiveType] enum.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "BLEND_SHAPE_MODE_NORMALIZED" value= "0" enum= "BlendShapeMode" >
2020-01-06 00:36:50 +01:00
Blend shapes are normalized.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "BLEND_SHAPE_MODE_RELATIVE" value= "1" enum= "BlendShapeMode" >
2020-01-06 00:36:50 +01:00
Blend shapes are relative to base weight.
2017-10-21 12:02:08 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "MULTIMESH_TRANSFORM_2D" value= "0" enum= "MultimeshTransformFormat" >
Use [Transform2D] to store MultiMesh transform.
</constant>
<constant name= "MULTIMESH_TRANSFORM_3D" value= "1" enum= "MultimeshTransformFormat" >
2020-05-03 10:27:36 +02:00
Use [Transform3D] to store MultiMesh transform.
2020-02-12 09:59:06 +01:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "LIGHT_DIRECTIONAL" value= "0" enum= "LightType" >
2017-11-26 16:37:37 +01:00
Is a directional (sun) light.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "LIGHT_OMNI" value= "1" enum= "LightType" >
2019-06-22 01:04:47 +02:00
Is an omni light.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "LIGHT_SPOT" value= "2" enum= "LightType" >
2019-06-22 01:04:47 +02:00
Is a spot light.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "LIGHT_PARAM_ENERGY" value= "0" enum= "LightParam" >
2017-11-26 16:37:37 +01:00
The light's energy.
2017-10-21 12:02:08 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "LIGHT_PARAM_INDIRECT_ENERGY" value= "1" enum= "LightParam" >
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "LIGHT_PARAM_SPECULAR" value= "2" enum= "LightParam" >
2017-11-26 16:37:37 +01:00
The light's influence on specularity.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "LIGHT_PARAM_RANGE" value= "3" enum= "LightParam" >
2017-11-26 16:37:37 +01:00
The light's range.
2017-10-21 12:02:08 +02:00
</constant>
2020-04-10 11:30:36 +02:00
<constant name= "LIGHT_PARAM_SIZE" value= "4" enum= "LightParam" >
The size of the light when using spot light or omni light. The angular size of the light when using directional light.
</constant>
<constant name= "LIGHT_PARAM_ATTENUATION" value= "5" enum= "LightParam" >
2017-11-26 16:37:37 +01:00
The light's attenuation.
2017-10-21 12:02:08 +02:00
</constant>
2020-04-10 11:30:36 +02:00
<constant name= "LIGHT_PARAM_SPOT_ANGLE" value= "6" enum= "LightParam" >
2017-11-26 16:37:37 +01:00
The spotlight's angle.
2017-10-21 12:02:08 +02:00
</constant>
2020-04-10 11:30:36 +02:00
<constant name= "LIGHT_PARAM_SPOT_ATTENUATION" value= "7" enum= "LightParam" >
2017-11-26 16:37:37 +01:00
The spotlight's attenuation.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "LIGHT_PARAM_SHADOW_MAX_DISTANCE" value= "8" enum= "LightParam" >
2020-01-06 00:36:50 +01:00
Max distance that shadows will be rendered.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "LIGHT_PARAM_SHADOW_SPLIT_1_OFFSET" value= "9" enum= "LightParam" >
2020-01-06 00:36:50 +01:00
Proportion of shadow atlas occupied by the first split.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "LIGHT_PARAM_SHADOW_SPLIT_2_OFFSET" value= "10" enum= "LightParam" >
2020-01-06 00:36:50 +01:00
Proportion of shadow atlas occupied by the second split.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "LIGHT_PARAM_SHADOW_SPLIT_3_OFFSET" value= "11" enum= "LightParam" >
2020-01-06 00:36:50 +01:00
Proportion of shadow atlas occupied by the third split. The fourth split occupies the rest.
2017-10-21 12:02:08 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "LIGHT_PARAM_SHADOW_FADE_START" value= "12" enum= "LightParam" >
2020-04-17 01:05:25 +02:00
Proportion of shadow max distance where the shadow will start to fade out.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "LIGHT_PARAM_SHADOW_NORMAL_BIAS" value= "13" enum= "LightParam" >
2020-01-06 00:36:50 +01:00
Normal bias used to offset shadow lookup by object normal. Can be used to fix self-shadowing artifacts.
2017-10-21 12:02:08 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "LIGHT_PARAM_SHADOW_BIAS" value= "14" enum= "LightParam" >
2020-01-06 00:36:50 +01:00
Bias the shadow lookup to fix self-shadowing artifacts.
2017-10-21 12:02:08 +02:00
</constant>
2020-04-17 01:05:25 +02:00
<constant name= "LIGHT_PARAM_SHADOW_PANCAKE_SIZE" value= "15" enum= "LightParam" >
Sets the size of the directional shadow pancake. The pancake offsets the start of the shadow's camera frustum to provide a higher effective depth resolution for the shadow. However, a high pancake size can cause artifacts in the shadows of large objects that are close to the edge of the frustum. Reducing the pancake size can help. Setting the size to [code]0[/code] turns off the pancaking effect.
2017-10-21 12:02:08 +02:00
</constant>
2020-04-17 01:05:25 +02:00
<constant name= "LIGHT_PARAM_SHADOW_BLUR" value= "16" enum= "LightParam" >
Blurs the edges of the shadow. Can be used to hide pixel artifacts in low resolution shadow maps. A high value can make shadows appear grainy and can cause other unwanted artifacts. Try to keep as near default as possible.
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "LIGHT_PARAM_SHADOW_VOLUMETRIC_FOG_FADE" value= "17" enum= "LightParam" >
</constant>
2020-08-31 11:25:11 +02:00
<constant name= "LIGHT_PARAM_TRANSMITTANCE_BIAS" value= "18" enum= "LightParam" >
2020-04-17 01:05:25 +02:00
</constant>
2020-08-31 11:25:11 +02:00
<constant name= "LIGHT_PARAM_MAX" value= "19" enum= "LightParam" >
2019-06-27 11:10:53 +02:00
Represents the size of the [enum LightParam] enum.
2017-10-21 12:02:08 +02:00
</constant>
2020-07-01 14:18:13 +02:00
<constant name= "LIGHT_BAKE_DISABLED" value= "0" enum= "LightBakeMode" >
</constant>
<constant name= "LIGHT_BAKE_DYNAMIC" value= "1" enum= "LightBakeMode" >
</constant>
<constant name= "LIGHT_BAKE_STATIC" value= "2" enum= "LightBakeMode" >
</constant>
2018-02-19 10:47:16 +01:00
<constant name= "LIGHT_OMNI_SHADOW_DUAL_PARABOLOID" value= "0" enum= "LightOmniShadowMode" >
2020-01-06 00:36:50 +01:00
Use a dual paraboloid shadow map for omni lights.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "LIGHT_OMNI_SHADOW_CUBE" value= "1" enum= "LightOmniShadowMode" >
2020-01-06 00:36:50 +01:00
Use a cubemap shadow map for omni lights. Slower but better quality than dual paraboloid.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "LIGHT_DIRECTIONAL_SHADOW_ORTHOGONAL" value= "0" enum= "LightDirectionalShadowMode" >
2020-01-06 00:36:50 +01:00
Use orthogonal shadow projection for directional light.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "LIGHT_DIRECTIONAL_SHADOW_PARALLEL_2_SPLITS" value= "1" enum= "LightDirectionalShadowMode" >
2020-01-06 00:36:50 +01:00
Use 2 splits for shadow projection when using directional light.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "LIGHT_DIRECTIONAL_SHADOW_PARALLEL_4_SPLITS" value= "2" enum= "LightDirectionalShadowMode" >
2020-01-06 00:36:50 +01:00
Use 4 splits for shadow projection when using directional light.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "LIGHT_DIRECTIONAL_SHADOW_DEPTH_RANGE_STABLE" value= "0" enum= "LightDirectionalShadowDepthRangeMode" >
2020-01-06 00:36:50 +01:00
Keeps shadows stable as camera moves but has lower effective resolution.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "LIGHT_DIRECTIONAL_SHADOW_DEPTH_RANGE_OPTIMIZED" value= "1" enum= "LightDirectionalShadowDepthRangeMode" >
2020-01-06 00:36:50 +01:00
Optimize use of shadow maps, increasing the effective resolution. But may result in shadows moving or flickering slightly.
2018-02-19 10:47:16 +01:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "SHADOW_QUALITY_HARD" value= "0" enum= "ShadowQuality" >
</constant>
<constant name= "SHADOW_QUALITY_SOFT_LOW" value= "1" enum= "ShadowQuality" >
</constant>
<constant name= "SHADOW_QUALITY_SOFT_MEDIUM" value= "2" enum= "ShadowQuality" >
</constant>
<constant name= "SHADOW_QUALITY_SOFT_HIGH" value= "3" enum= "ShadowQuality" >
</constant>
<constant name= "SHADOW_QUALITY_SOFT_ULTRA" value= "4" enum= "ShadowQuality" >
</constant>
<constant name= "SHADOW_QUALITY_MAX" value= "5" enum= "ShadowQuality" >
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "REFLECTION_PROBE_UPDATE_ONCE" value= "0" enum= "ReflectionProbeUpdateMode" >
Reflection probe will update reflections once and then stop.
</constant>
<constant name= "REFLECTION_PROBE_UPDATE_ALWAYS" value= "1" enum= "ReflectionProbeUpdateMode" >
Reflection probe will update each frame. This mode is necessary to capture moving objects.
</constant>
2020-07-01 14:18:13 +02:00
<constant name= "REFLECTION_PROBE_AMBIENT_DISABLED" value= "0" enum= "ReflectionProbeAmbientMode" >
</constant>
<constant name= "REFLECTION_PROBE_AMBIENT_ENVIRONMENT" value= "1" enum= "ReflectionProbeAmbientMode" >
</constant>
<constant name= "REFLECTION_PROBE_AMBIENT_COLOR" value= "2" enum= "ReflectionProbeAmbientMode" >
</constant>
2020-04-20 11:48:00 +02:00
<constant name= "DECAL_TEXTURE_ALBEDO" value= "0" enum= "DecalTexture" >
</constant>
<constant name= "DECAL_TEXTURE_NORMAL" value= "1" enum= "DecalTexture" >
</constant>
<constant name= "DECAL_TEXTURE_ORM" value= "2" enum= "DecalTexture" >
</constant>
<constant name= "DECAL_TEXTURE_EMISSION" value= "3" enum= "DecalTexture" >
</constant>
<constant name= "DECAL_TEXTURE_MAX" value= "4" enum= "DecalTexture" >
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "VOXEL_GI_QUALITY_LOW" value= "0" enum= "VoxelGIQuality" >
</constant>
<constant name= "VOXEL_GI_QUALITY_HIGH" value= "1" enum= "VoxelGIQuality" >
</constant>
<constant name= "PARTICLES_MODE_2D" value= "0" enum= "ParticlesMode" >
</constant>
<constant name= "PARTICLES_MODE_3D" value= "1" enum= "ParticlesMode" >
</constant>
<constant name= "PARTICLES_TRANSFORM_ALIGN_DISABLED" value= "0" enum= "ParticlesTransformAlign" >
</constant>
<constant name= "PARTICLES_TRANSFORM_ALIGN_Z_BILLBOARD" value= "1" enum= "ParticlesTransformAlign" >
</constant>
<constant name= "PARTICLES_TRANSFORM_ALIGN_Y_TO_VELOCITY" value= "2" enum= "ParticlesTransformAlign" >
</constant>
<constant name= "PARTICLES_TRANSFORM_ALIGN_Z_BILLBOARD_Y_TO_VELOCITY" value= "3" enum= "ParticlesTransformAlign" >
</constant>
<constant name= "PARTICLES_EMIT_FLAG_POSITION" value= "1" >
</constant>
<constant name= "PARTICLES_EMIT_FLAG_ROTATION_SCALE" value= "2" >
</constant>
<constant name= "PARTICLES_EMIT_FLAG_VELOCITY" value= "4" >
</constant>
<constant name= "PARTICLES_EMIT_FLAG_COLOR" value= "8" >
</constant>
<constant name= "PARTICLES_EMIT_FLAG_CUSTOM" value= "16" >
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "PARTICLES_DRAW_ORDER_INDEX" value= "0" enum= "ParticlesDrawOrder" >
Draw particles in the order that they appear in the particles array.
</constant>
<constant name= "PARTICLES_DRAW_ORDER_LIFETIME" value= "1" enum= "ParticlesDrawOrder" >
Sort particles based on their lifetime.
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "PARTICLES_DRAW_ORDER_REVERSE_LIFETIME" value= "2" enum= "ParticlesDrawOrder" >
</constant>
2021-05-20 16:25:06 +02:00
<constant name= "PARTICLES_DRAW_ORDER_VIEW_DEPTH" value= "3" enum= "ParticlesDrawOrder" >
2020-02-12 09:59:06 +01:00
Sort particles based on their distance to the camera.
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "PARTICLES_COLLISION_TYPE_SPHERE_ATTRACT" value= "0" enum= "ParticlesCollisionType" >
</constant>
<constant name= "PARTICLES_COLLISION_TYPE_BOX_ATTRACT" value= "1" enum= "ParticlesCollisionType" >
</constant>
<constant name= "PARTICLES_COLLISION_TYPE_VECTOR_FIELD_ATTRACT" value= "2" enum= "ParticlesCollisionType" >
</constant>
<constant name= "PARTICLES_COLLISION_TYPE_SPHERE_COLLIDE" value= "3" enum= "ParticlesCollisionType" >
</constant>
<constant name= "PARTICLES_COLLISION_TYPE_BOX_COLLIDE" value= "4" enum= "ParticlesCollisionType" >
</constant>
<constant name= "PARTICLES_COLLISION_TYPE_SDF_COLLIDE" value= "5" enum= "ParticlesCollisionType" >
</constant>
<constant name= "PARTICLES_COLLISION_TYPE_HEIGHTFIELD_COLLIDE" value= "6" enum= "ParticlesCollisionType" >
</constant>
<constant name= "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_256" value= "0" enum= "ParticlesCollisionHeightfieldResolution" >
</constant>
<constant name= "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_512" value= "1" enum= "ParticlesCollisionHeightfieldResolution" >
</constant>
<constant name= "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_1024" value= "2" enum= "ParticlesCollisionHeightfieldResolution" >
</constant>
<constant name= "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_2048" value= "3" enum= "ParticlesCollisionHeightfieldResolution" >
</constant>
<constant name= "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_4096" value= "4" enum= "ParticlesCollisionHeightfieldResolution" >
</constant>
<constant name= "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_8192" value= "5" enum= "ParticlesCollisionHeightfieldResolution" >
</constant>
<constant name= "PARTICLES_COLLISION_HEIGHTFIELD_RESOLUTION_MAX" value= "6" enum= "ParticlesCollisionHeightfieldResolution" >
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_UPDATE_DISABLED" value= "0" enum= "ViewportUpdateMode" >
2020-01-06 00:36:50 +01:00
Do not update the viewport.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_UPDATE_ONCE" value= "1" enum= "ViewportUpdateMode" >
2020-01-06 00:36:50 +01:00
Update the viewport once then set to disabled.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_UPDATE_WHEN_VISIBLE" value= "2" enum= "ViewportUpdateMode" >
2020-01-06 00:36:50 +01:00
Update the viewport whenever it is visible.
2017-10-21 12:02:08 +02:00
</constant>
2020-03-31 11:56:58 +02:00
<constant name= "VIEWPORT_UPDATE_WHEN_PARENT_VISIBLE" value= "3" enum= "ViewportUpdateMode" >
</constant>
<constant name= "VIEWPORT_UPDATE_ALWAYS" value= "4" enum= "ViewportUpdateMode" >
2020-01-06 00:36:50 +01:00
Always update the viewport.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_CLEAR_ALWAYS" value= "0" enum= "ViewportClearMode" >
2017-11-26 16:37:37 +01:00
The viewport is always cleared before drawing.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_CLEAR_NEVER" value= "1" enum= "ViewportClearMode" >
2017-11-26 16:37:37 +01:00
The viewport is never cleared before drawing.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_CLEAR_ONLY_NEXT_FRAME" value= "2" enum= "ViewportClearMode" >
2019-06-27 12:34:26 +02:00
The viewport is cleared once, then the clear mode is set to [constant VIEWPORT_CLEAR_NEVER].
2017-10-21 12:02:08 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "VIEWPORT_SDF_OVERSIZE_100_PERCENT" value= "0" enum= "ViewportSDFOversize" >
</constant>
<constant name= "VIEWPORT_SDF_OVERSIZE_120_PERCENT" value= "1" enum= "ViewportSDFOversize" >
</constant>
<constant name= "VIEWPORT_SDF_OVERSIZE_150_PERCENT" value= "2" enum= "ViewportSDFOversize" >
</constant>
<constant name= "VIEWPORT_SDF_OVERSIZE_200_PERCENT" value= "3" enum= "ViewportSDFOversize" >
</constant>
<constant name= "VIEWPORT_SDF_OVERSIZE_MAX" value= "4" enum= "ViewportSDFOversize" >
</constant>
<constant name= "VIEWPORT_SDF_SCALE_100_PERCENT" value= "0" enum= "ViewportSDFScale" >
</constant>
<constant name= "VIEWPORT_SDF_SCALE_50_PERCENT" value= "1" enum= "ViewportSDFScale" >
</constant>
<constant name= "VIEWPORT_SDF_SCALE_25_PERCENT" value= "2" enum= "ViewportSDFScale" >
</constant>
<constant name= "VIEWPORT_SDF_SCALE_MAX" value= "3" enum= "ViewportSDFScale" >
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_MSAA_DISABLED" value= "0" enum= "ViewportMSAA" >
2017-11-26 16:37:37 +01:00
Multisample antialiasing is disabled.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_MSAA_2X" value= "1" enum= "ViewportMSAA" >
2020-04-17 01:05:25 +02:00
Multisample antialiasing uses 2 samples per pixel.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_MSAA_4X" value= "2" enum= "ViewportMSAA" >
2020-04-17 01:05:25 +02:00
Multisample antialiasing uses 4 samples per pixel.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_MSAA_8X" value= "3" enum= "ViewportMSAA" >
2020-04-17 01:05:25 +02:00
Multisample antialiasing uses 8 samples per pixel.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_MSAA_16X" value= "4" enum= "ViewportMSAA" >
2020-04-17 01:05:25 +02:00
Multisample antialiasing uses 16 samples per pixel.
2019-11-10 09:30:20 +01:00
</constant>
2020-04-20 11:48:00 +02:00
<constant name= "VIEWPORT_MSAA_MAX" value= "5" enum= "ViewportMSAA" >
</constant>
<constant name= "VIEWPORT_SCREEN_SPACE_AA_DISABLED" value= "0" enum= "ViewportScreenSpaceAA" >
</constant>
<constant name= "VIEWPORT_SCREEN_SPACE_AA_FXAA" value= "1" enum= "ViewportScreenSpaceAA" >
</constant>
<constant name= "VIEWPORT_SCREEN_SPACE_AA_MAX" value= "2" enum= "ViewportScreenSpaceAA" >
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "VIEWPORT_OCCLUSION_BUILD_QUALITY_LOW" value= "0" enum= "ViewportOcclusionCullingBuildQuality" >
</constant>
<constant name= "VIEWPORT_OCCLUSION_BUILD_QUALITY_MEDIUM" value= "1" enum= "ViewportOcclusionCullingBuildQuality" >
</constant>
<constant name= "VIEWPORT_OCCLUSION_BUILD_QUALITY_HIGH" value= "2" enum= "ViewportOcclusionCullingBuildQuality" >
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_RENDER_INFO_OBJECTS_IN_FRAME" value= "0" enum= "ViewportRenderInfo" >
2020-01-06 00:36:50 +01:00
Number of objects drawn in a single frame.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_RENDER_INFO_VERTICES_IN_FRAME" value= "1" enum= "ViewportRenderInfo" >
2020-01-06 00:36:50 +01:00
Number of vertices drawn in a single frame.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_RENDER_INFO_MATERIAL_CHANGES_IN_FRAME" value= "2" enum= "ViewportRenderInfo" >
2020-01-06 00:36:50 +01:00
Number of material changes during this frame.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_RENDER_INFO_SHADER_CHANGES_IN_FRAME" value= "3" enum= "ViewportRenderInfo" >
2020-01-06 00:36:50 +01:00
Number of shader changes during this frame.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_RENDER_INFO_SURFACE_CHANGES_IN_FRAME" value= "4" enum= "ViewportRenderInfo" >
2020-01-06 00:36:50 +01:00
Number of surface changes during this frame.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_RENDER_INFO_DRAW_CALLS_IN_FRAME" value= "5" enum= "ViewportRenderInfo" >
2020-01-06 00:36:50 +01:00
Number of draw calls during this frame.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_RENDER_INFO_MAX" value= "6" enum= "ViewportRenderInfo" >
2019-06-27 11:10:53 +02:00
Represents the size of the [enum ViewportRenderInfo] enum.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_DEBUG_DRAW_DISABLED" value= "0" enum= "ViewportDebugDraw" >
2017-11-26 16:37:37 +01:00
Debug draw is disabled. Default setting.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_DEBUG_DRAW_UNSHADED" value= "1" enum= "ViewportDebugDraw" >
2020-04-17 01:05:25 +02:00
Objects are displayed without light information.
2017-10-21 12:02:08 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "VIEWPORT_DEBUG_DRAW_LIGHTING" value= "2" enum= "ViewportDebugDraw" >
2020-04-17 01:05:25 +02:00
Objects are displayed with only light information.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "VIEWPORT_DEBUG_DRAW_OVERDRAW" value= "3" enum= "ViewportDebugDraw" >
2020-11-22 16:28:00 +01:00
Objects are displayed semi-transparent with additive blending so you can see where they are drawing over top of one another. A higher overdraw (represented by brighter colors) means you are wasting performance on drawing pixels that are being hidden behind others.
[b]Note:[/b] When using this debug draw mode, custom shaders will be ignored. This means vertex displacement won't be visible anymore.
2017-10-21 12:02:08 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "VIEWPORT_DEBUG_DRAW_WIREFRAME" value= "4" enum= "ViewportDebugDraw" >
2017-11-26 16:37:37 +01:00
Debug draw draws objects in wireframe.
2017-10-21 12:02:08 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "VIEWPORT_DEBUG_DRAW_NORMAL_BUFFER" value= "5" enum= "ViewportDebugDraw" >
2020-04-17 01:05:25 +02:00
Normal buffer is drawn instead of regular scene so you can see the per-pixel normals that will be used by post-processing effects.
2020-02-12 09:59:06 +01:00
</constant>
2021-06-05 00:47:26 +02:00
<constant name= "VIEWPORT_DEBUG_DRAW_VOXEL_GI_ALBEDO" value= "6" enum= "ViewportDebugDraw" >
Objects are displayed with only the albedo value from [VoxelGI]s.
2020-02-12 09:59:06 +01:00
</constant>
2021-06-05 00:47:26 +02:00
<constant name= "VIEWPORT_DEBUG_DRAW_VOXEL_GI_LIGHTING" value= "7" enum= "ViewportDebugDraw" >
Objects are displayed with only the lighting value from [VoxelGI]s.
2020-02-12 09:59:06 +01:00
</constant>
2021-06-05 00:47:26 +02:00
<constant name= "VIEWPORT_DEBUG_DRAW_VOXEL_GI_EMISSION" value= "8" enum= "ViewportDebugDraw" >
Objects are displayed with only the emission color from [VoxelGI]s.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "VIEWPORT_DEBUG_DRAW_SHADOW_ATLAS" value= "9" enum= "ViewportDebugDraw" >
2020-04-17 01:05:25 +02:00
Draws the shadow atlas that stores shadows from [OmniLight3D]s and [SpotLight3D]s in the upper left quadrant of the [Viewport].
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "VIEWPORT_DEBUG_DRAW_DIRECTIONAL_SHADOW_ATLAS" value= "10" enum= "ViewportDebugDraw" >
2020-04-17 01:05:25 +02:00
Draws the shadow atlas that stores shadows from [DirectionalLight3D]s in the upper left quadrant of the [Viewport].
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "VIEWPORT_DEBUG_DRAW_SCENE_LUMINANCE" value= "11" enum= "ViewportDebugDraw" >
</constant>
<constant name= "VIEWPORT_DEBUG_DRAW_SSAO" value= "12" enum= "ViewportDebugDraw" >
2020-04-17 01:05:25 +02:00
Draws the screen space ambient occlusion texture instead of the scene so that you can clearly see how it is affecting objects. In order for this display mode to work, you must have [member Environment.ssao_enabled] set in your [WorldEnvironment].
2020-02-12 09:59:06 +01:00
</constant>
2020-07-01 14:18:13 +02:00
<constant name= "VIEWPORT_DEBUG_DRAW_PSSM_SPLITS" value= "13" enum= "ViewportDebugDraw" >
2020-04-17 01:05:25 +02:00
Colors each PSSM split for the [DirectionalLight3D]s in the scene a different color so you can see where the splits are. In order they will be colored red, green, blue, yellow.
2020-02-12 09:59:06 +01:00
</constant>
2020-07-01 14:18:13 +02:00
<constant name= "VIEWPORT_DEBUG_DRAW_DECAL_ATLAS" value= "14" enum= "ViewportDebugDraw" >
</constant>
<constant name= "VIEWPORT_DEBUG_DRAW_SDFGI" value= "15" enum= "ViewportDebugDraw" >
</constant>
<constant name= "VIEWPORT_DEBUG_DRAW_SDFGI_PROBES" value= "16" enum= "ViewportDebugDraw" >
</constant>
<constant name= "VIEWPORT_DEBUG_DRAW_GI_BUFFER" value= "17" enum= "ViewportDebugDraw" >
2020-04-20 11:48:00 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "VIEWPORT_DEBUG_DRAW_DISABLE_LOD" value= "18" enum= "ViewportDebugDraw" >
</constant>
<constant name= "VIEWPORT_DEBUG_DRAW_CLUSTER_OMNI_LIGHTS" value= "19" enum= "ViewportDebugDraw" >
</constant>
<constant name= "VIEWPORT_DEBUG_DRAW_CLUSTER_SPOT_LIGHTS" value= "20" enum= "ViewportDebugDraw" >
</constant>
<constant name= "VIEWPORT_DEBUG_DRAW_CLUSTER_DECALS" value= "21" enum= "ViewportDebugDraw" >
</constant>
<constant name= "VIEWPORT_DEBUG_DRAW_CLUSTER_REFLECTION_PROBES" value= "22" enum= "ViewportDebugDraw" >
</constant>
2021-04-20 18:40:24 +02:00
<constant name= "VIEWPORT_DEBUG_DRAW_OCCLUDERS" value= "23" enum= "ViewportDebugDraw" >
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "SKY_MODE_AUTOMATIC" value= "0" enum= "SkyMode" >
</constant>
2020-07-11 02:07:30 +02:00
<constant name= "SKY_MODE_QUALITY" value= "1" enum= "SkyMode" >
2021-02-19 13:35:31 +01:00
Uses high quality importance sampling to process the radiance map. In general, this results in much higher quality than [constant Sky.PROCESS_MODE_REALTIME] but takes much longer to generate. This should not be used if you plan on changing the sky at runtime. If you are finding that the reflection is not blurry enough and is showing sparkles or fireflies, try increasing [member ProjectSettings.rendering/reflections/sky_reflections/ggx_samples].
2020-02-12 09:59:06 +01:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "SKY_MODE_INCREMENTAL" value= "2" enum= "SkyMode" >
</constant>
2020-07-11 02:07:30 +02:00
<constant name= "SKY_MODE_REALTIME" value= "3" enum= "SkyMode" >
2020-04-17 01:05:25 +02:00
Uses the fast filtering algorithm to process the radiance map. In general this results in lower quality, but substantially faster run times.
[b]Note:[/b] The fast filtering algorithm is limited to 256x256 cubemaps, so [member Sky.radiance_size] must be set to [constant Sky.RADIANCE_SIZE_256].
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "ENV_BG_CLEAR_COLOR" value= "0" enum= "EnvironmentBG" >
Use the clear color as background.
</constant>
<constant name= "ENV_BG_COLOR" value= "1" enum= "EnvironmentBG" >
Use a specified color as the background.
</constant>
<constant name= "ENV_BG_SKY" value= "2" enum= "EnvironmentBG" >
Use a sky resource for the background.
</constant>
<constant name= "ENV_BG_CANVAS" value= "3" enum= "EnvironmentBG" >
Use a specified canvas layer as the background. This can be useful for instantiating a 2D scene in a 3D world.
</constant>
<constant name= "ENV_BG_KEEP" value= "4" enum= "EnvironmentBG" >
Do not clear the background, use whatever was rendered last frame as the background.
</constant>
<constant name= "ENV_BG_CAMERA_FEED" value= "5" enum= "EnvironmentBG" >
Displays a camera feed in the background.
</constant>
<constant name= "ENV_BG_MAX" value= "6" enum= "EnvironmentBG" >
Represents the size of the [enum EnvironmentBG] enum.
</constant>
<constant name= "ENV_AMBIENT_SOURCE_BG" value= "0" enum= "EnvironmentAmbientSource" >
2020-04-17 01:05:25 +02:00
Gather ambient light from whichever source is specified as the background.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "ENV_AMBIENT_SOURCE_DISABLED" value= "1" enum= "EnvironmentAmbientSource" >
2020-04-17 01:05:25 +02:00
Disable ambient light.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "ENV_AMBIENT_SOURCE_COLOR" value= "2" enum= "EnvironmentAmbientSource" >
2020-04-17 01:05:25 +02:00
Specify a specific [Color] for ambient light.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "ENV_AMBIENT_SOURCE_SKY" value= "3" enum= "EnvironmentAmbientSource" >
2020-04-17 01:05:25 +02:00
Gather ambient light from the [Sky] regardless of what the background is.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "ENV_REFLECTION_SOURCE_BG" value= "0" enum= "EnvironmentReflectionSource" >
2020-04-17 01:05:25 +02:00
Use the background for reflections.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "ENV_REFLECTION_SOURCE_DISABLED" value= "1" enum= "EnvironmentReflectionSource" >
2020-04-17 01:05:25 +02:00
Disable reflections.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "ENV_REFLECTION_SOURCE_SKY" value= "2" enum= "EnvironmentReflectionSource" >
2020-04-17 01:05:25 +02:00
Use the [Sky] for reflections regardless of what the background is.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "ENV_GLOW_BLEND_MODE_ADDITIVE" value= "0" enum= "EnvironmentGlowBlendMode" >
2020-04-17 01:05:25 +02:00
Additive glow blending mode. Mostly used for particles, glows (bloom), lens flare, bright sources.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "ENV_GLOW_BLEND_MODE_SCREEN" value= "1" enum= "EnvironmentGlowBlendMode" >
2020-04-17 01:05:25 +02:00
Screen glow blending mode. Increases brightness, used frequently with bloom.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "ENV_GLOW_BLEND_MODE_SOFTLIGHT" value= "2" enum= "EnvironmentGlowBlendMode" >
2020-04-17 01:05:25 +02:00
Soft light glow blending mode. Modifies contrast, exposes shadows and highlights (vivid bloom).
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "ENV_GLOW_BLEND_MODE_REPLACE" value= "3" enum= "EnvironmentGlowBlendMode" >
2020-04-17 01:05:25 +02:00
Replace glow blending mode. Replaces all pixels' color by the glow value. This can be used to simulate a full-screen blur effect by tweaking the glow parameters to match the original image's brightness.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "ENV_GLOW_BLEND_MODE_MIX" value= "4" enum= "EnvironmentGlowBlendMode" >
2020-04-17 01:05:25 +02:00
Mixes the glow with the underlying color to avoid increasing brightness as much while still maintaining a glow effect.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "ENV_TONE_MAPPER_LINEAR" value= "0" enum= "EnvironmentToneMapper" >
Output color as they came in.
</constant>
<constant name= "ENV_TONE_MAPPER_REINHARD" value= "1" enum= "EnvironmentToneMapper" >
Use the Reinhard tonemapper.
</constant>
<constant name= "ENV_TONE_MAPPER_FILMIC" value= "2" enum= "EnvironmentToneMapper" >
Use the filmic tonemapper.
</constant>
<constant name= "ENV_TONE_MAPPER_ACES" value= "3" enum= "EnvironmentToneMapper" >
Use the ACES tonemapper.
</constant>
2020-04-20 11:48:00 +02:00
<constant name= "ENV_SSR_ROUGNESS_QUALITY_DISABLED" value= "0" enum= "EnvironmentSSRRoughnessQuality" >
</constant>
<constant name= "ENV_SSR_ROUGNESS_QUALITY_LOW" value= "1" enum= "EnvironmentSSRRoughnessQuality" >
</constant>
<constant name= "ENV_SSR_ROUGNESS_QUALITY_MEDIUM" value= "2" enum= "EnvironmentSSRRoughnessQuality" >
</constant>
<constant name= "ENV_SSR_ROUGNESS_QUALITY_HIGH" value= "3" enum= "EnvironmentSSRRoughnessQuality" >
</constant>
2020-12-08 06:37:09 +01:00
<constant name= "ENV_SSAO_QUALITY_VERY_LOW" value= "0" enum= "EnvironmentSSAOQuality" >
2020-10-19 00:27:51 +02:00
Lowest quality of screen space ambient occlusion.
2020-02-16 18:55:40 +01:00
</constant>
2020-12-08 06:37:09 +01:00
<constant name= "ENV_SSAO_QUALITY_LOW" value= "1" enum= "EnvironmentSSAOQuality" >
Low quality screen space ambient occlusion.
</constant>
<constant name= "ENV_SSAO_QUALITY_MEDIUM" value= "2" enum= "EnvironmentSSAOQuality" >
2020-10-19 00:27:51 +02:00
Medium quality screen space ambient occlusion.
2020-02-16 18:55:40 +01:00
</constant>
2020-12-08 06:37:09 +01:00
<constant name= "ENV_SSAO_QUALITY_HIGH" value= "3" enum= "EnvironmentSSAOQuality" >
2020-10-19 00:27:51 +02:00
High quality screen space ambient occlusion.
2020-02-16 18:55:40 +01:00
</constant>
2020-12-08 06:37:09 +01:00
<constant name= "ENV_SSAO_QUALITY_ULTRA" value= "4" enum= "EnvironmentSSAOQuality" >
Highest quality screen space ambient occlusion. Uses the adaptive setting which can be dynamically adjusted to smoothly balance performance and visual quality.
2020-02-12 09:59:06 +01:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_CASCADES_4" value= "0" enum= "EnvironmentSDFGICascades" >
2020-04-20 11:48:00 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_CASCADES_6" value= "1" enum= "EnvironmentSDFGICascades" >
2020-04-20 11:48:00 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_CASCADES_8" value= "2" enum= "EnvironmentSDFGICascades" >
2020-04-20 11:48:00 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_Y_SCALE_DISABLED" value= "0" enum= "EnvironmentSDFGIYScale" >
2020-04-20 11:48:00 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_Y_SCALE_75_PERCENT" value= "1" enum= "EnvironmentSDFGIYScale" >
2020-02-12 09:59:06 +01:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_Y_SCALE_50_PERCENT" value= "2" enum= "EnvironmentSDFGIYScale" >
2020-02-12 09:59:06 +01:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_RAY_COUNT_4" value= "0" enum= "EnvironmentSDFGIRayCount" >
2020-02-12 09:59:06 +01:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_RAY_COUNT_8" value= "1" enum= "EnvironmentSDFGIRayCount" >
2020-02-12 09:59:06 +01:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_RAY_COUNT_16" value= "2" enum= "EnvironmentSDFGIRayCount" >
2020-02-12 09:59:06 +01:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_RAY_COUNT_32" value= "3" enum= "EnvironmentSDFGIRayCount" >
2020-02-12 09:59:06 +01:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_RAY_COUNT_64" value= "4" enum= "EnvironmentSDFGIRayCount" >
2020-02-12 09:59:06 +01:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_RAY_COUNT_96" value= "5" enum= "EnvironmentSDFGIRayCount" >
2020-04-20 11:48:00 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_RAY_COUNT_128" value= "6" enum= "EnvironmentSDFGIRayCount" >
2020-04-20 11:48:00 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_RAY_COUNT_MAX" value= "7" enum= "EnvironmentSDFGIRayCount" >
2020-04-20 11:48:00 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_CONVERGE_IN_5_FRAMES" value= "0" enum= "EnvironmentSDFGIFramesToConverge" >
2020-04-20 11:48:00 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_CONVERGE_IN_10_FRAMES" value= "1" enum= "EnvironmentSDFGIFramesToConverge" >
2020-04-20 11:48:00 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_CONVERGE_IN_15_FRAMES" value= "2" enum= "EnvironmentSDFGIFramesToConverge" >
2020-04-20 11:48:00 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_CONVERGE_IN_20_FRAMES" value= "3" enum= "EnvironmentSDFGIFramesToConverge" >
2017-10-21 12:02:08 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_CONVERGE_IN_25_FRAMES" value= "4" enum= "EnvironmentSDFGIFramesToConverge" >
2017-10-21 12:02:08 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_CONVERGE_IN_30_FRAMES" value= "5" enum= "EnvironmentSDFGIFramesToConverge" >
2017-10-21 12:02:08 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_CONVERGE_MAX" value= "6" enum= "EnvironmentSDFGIFramesToConverge" >
2017-10-21 12:02:08 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_UPDATE_LIGHT_IN_1_FRAME" value= "0" enum= "EnvironmentSDFGIFramesToUpdateLight" >
2021-04-20 18:40:24 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_UPDATE_LIGHT_IN_2_FRAMES" value= "1" enum= "EnvironmentSDFGIFramesToUpdateLight" >
2021-04-20 18:40:24 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "ENV_SDFGI_UPDATE_LIGHT_IN_4_FRAMES" value= "2" enum= "EnvironmentSDFGIFramesToUpdateLight" >
</constant>
<constant name= "ENV_SDFGI_UPDATE_LIGHT_IN_8_FRAMES" value= "3" enum= "EnvironmentSDFGIFramesToUpdateLight" >
</constant>
<constant name= "ENV_SDFGI_UPDATE_LIGHT_IN_16_FRAMES" value= "4" enum= "EnvironmentSDFGIFramesToUpdateLight" >
</constant>
<constant name= "ENV_SDFGI_UPDATE_LIGHT_MAX" value= "5" enum= "EnvironmentSDFGIFramesToUpdateLight" >
</constant>
<constant name= "SUB_SURFACE_SCATTERING_QUALITY_DISABLED" value= "0" enum= "SubSurfaceScatteringQuality" >
</constant>
<constant name= "SUB_SURFACE_SCATTERING_QUALITY_LOW" value= "1" enum= "SubSurfaceScatteringQuality" >
</constant>
<constant name= "SUB_SURFACE_SCATTERING_QUALITY_MEDIUM" value= "2" enum= "SubSurfaceScatteringQuality" >
</constant>
<constant name= "SUB_SURFACE_SCATTERING_QUALITY_HIGH" value= "3" enum= "SubSurfaceScatteringQuality" >
</constant>
<constant name= "DOF_BOKEH_BOX" value= "0" enum= "DOFBokehShape" >
Calculate the DOF blur using a box filter. The fastest option, but results in obvious lines in blur pattern.
</constant>
<constant name= "DOF_BOKEH_HEXAGON" value= "1" enum= "DOFBokehShape" >
Calculates DOF blur using a hexagon shaped filter.
</constant>
<constant name= "DOF_BOKEH_CIRCLE" value= "2" enum= "DOFBokehShape" >
Calculates DOF blur using a circle shaped filter. Best quality and most realistic, but slowest. Use only for areas where a lot of performance can be dedicated to post-processing (e.g. cutscenes).
</constant>
<constant name= "DOF_BLUR_QUALITY_VERY_LOW" value= "0" enum= "DOFBlurQuality" >
Lowest quality DOF blur. This is the fastest setting, but you may be able to see filtering artifacts.
</constant>
<constant name= "DOF_BLUR_QUALITY_LOW" value= "1" enum= "DOFBlurQuality" >
Low quality DOF blur.
</constant>
<constant name= "DOF_BLUR_QUALITY_MEDIUM" value= "2" enum= "DOFBlurQuality" >
Medium quality DOF blur.
</constant>
<constant name= "DOF_BLUR_QUALITY_HIGH" value= "3" enum= "DOFBlurQuality" >
Highest quality DOF blur. Results in the smoothest looking blur by taking the most samples, but is also significantly slower.
2021-04-20 18:40:24 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "INSTANCE_NONE" value= "0" enum= "InstanceType" >
2017-11-26 16:37:37 +01:00
The instance does not have a type.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "INSTANCE_MESH" value= "1" enum= "InstanceType" >
2017-11-26 16:37:37 +01:00
The instance is a mesh.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "INSTANCE_MULTIMESH" value= "2" enum= "InstanceType" >
2017-11-26 16:37:37 +01:00
The instance is a multimesh.
2017-10-21 12:02:08 +02:00
</constant>
2021-06-30 03:55:11 +02:00
<constant name= "INSTANCE_PARTICLES" value= "3" enum= "InstanceType" >
2017-11-26 16:37:37 +01:00
The instance is a particle emitter.
2017-10-21 12:02:08 +02:00
</constant>
2021-06-30 03:55:11 +02:00
<constant name= "INSTANCE_PARTICLES_COLLISION" value= "4" enum= "InstanceType" >
2020-10-12 10:57:54 +02:00
</constant>
2021-06-30 03:55:11 +02:00
<constant name= "INSTANCE_LIGHT" value= "5" enum= "InstanceType" >
2017-11-26 16:37:37 +01:00
The instance is a light.
2017-10-21 12:02:08 +02:00
</constant>
2021-06-30 03:55:11 +02:00
<constant name= "INSTANCE_REFLECTION_PROBE" value= "6" enum= "InstanceType" >
2020-01-05 09:33:16 +01:00
The instance is a reflection probe.
2017-10-21 12:02:08 +02:00
</constant>
2021-06-30 03:55:11 +02:00
<constant name= "INSTANCE_DECAL" value= "7" enum= "InstanceType" >
2020-04-20 11:48:00 +02:00
The instance is a decal.
</constant>
2021-06-30 03:55:11 +02:00
<constant name= "INSTANCE_VOXEL_GI" value= "8" enum= "InstanceType" >
2021-06-05 00:47:26 +02:00
The instance is a VoxelGI.
2017-10-21 12:02:08 +02:00
</constant>
2021-06-30 03:55:11 +02:00
<constant name= "INSTANCE_LIGHTMAP" value= "9" enum= "InstanceType" >
2020-05-12 10:10:34 +02:00
The instance is a lightmap.
2017-12-16 20:34:16 +01:00
</constant>
2021-06-30 03:55:11 +02:00
<constant name= "INSTANCE_OCCLUDER" value= "10" enum= "InstanceType" >
2021-04-20 18:40:24 +02:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "INSTANCE_VISIBLITY_NOTIFIER" value= "11" enum= "InstanceType" >
</constant>
2021-06-30 03:55:11 +02:00
<constant name= "INSTANCE_MAX" value= "12" enum= "InstanceType" >
2019-06-27 11:10:53 +02:00
Represents the size of the [enum InstanceType] enum.
2017-10-21 12:02:08 +02:00
</constant>
2021-06-30 03:55:11 +02:00
<constant name= "INSTANCE_GEOMETRY_MASK" value= "14" enum= "InstanceType" >
2017-11-26 16:37:37 +01:00
A combination of the flags of geometry instances (mesh, multimesh, immediate and particles).
2017-10-21 12:02:08 +02:00
</constant>
2018-02-19 10:47:16 +01:00
<constant name= "INSTANCE_FLAG_USE_BAKED_LIGHT" value= "0" enum= "InstanceFlags" >
2020-01-04 08:24:40 +01:00
Allows the instance to be used in baked lighting.
2018-02-19 10:47:16 +01:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "INSTANCE_FLAG_USE_DYNAMIC_GI" value= "1" enum= "InstanceFlags" >
2020-04-20 11:48:00 +02:00
Allows the instance to be used with dynamic global illumination.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "INSTANCE_FLAG_DRAW_NEXT_FRAME_IF_VISIBLE" value= "2" enum= "InstanceFlags" >
2020-01-04 08:24:40 +01:00
When set, manually requests to draw geometry on next frame.
2018-07-26 11:56:21 +02:00
</constant>
2021-04-20 18:40:24 +02:00
<constant name= "INSTANCE_FLAG_IGNORE_OCCLUSION_CULLING" value= "3" enum= "InstanceFlags" >
</constant>
<constant name= "INSTANCE_FLAG_MAX" value= "4" enum= "InstanceFlags" >
2019-06-27 11:10:53 +02:00
Represents the size of the [enum InstanceFlags] enum.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "SHADOW_CASTING_SETTING_OFF" value= "0" enum= "ShadowCastingSetting" >
2020-01-04 08:24:40 +01:00
Disable shadows from this instance.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "SHADOW_CASTING_SETTING_ON" value= "1" enum= "ShadowCastingSetting" >
2020-01-04 08:24:40 +01:00
Cast shadows from this instance.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "SHADOW_CASTING_SETTING_DOUBLE_SIDED" value= "2" enum= "ShadowCastingSetting" >
2020-01-04 08:24:40 +01:00
Disable backface culling when rendering the shadow of the object. This is slightly slower but may result in more correct shadows.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "SHADOW_CASTING_SETTING_SHADOWS_ONLY" value= "3" enum= "ShadowCastingSetting" >
2020-01-04 08:24:40 +01:00
Only render the shadows from the object. The object itself will not be drawn.
2018-02-19 10:47:16 +01:00
</constant>
2021-07-01 04:17:47 +02:00
<constant name= "BAKE_CHANNEL_ALBEDO_ALPHA" value= "0" enum= "BakeChannels" >
</constant>
<constant name= "BAKE_CHANNEL_NORMAL" value= "1" enum= "BakeChannels" >
</constant>
<constant name= "BAKE_CHANNEL_ORM" value= "2" enum= "BakeChannels" >
</constant>
<constant name= "BAKE_CHANNEL_EMISSION" value= "3" enum= "BakeChannels" >
</constant>
<constant name= "CANVAS_TEXTURE_CHANNEL_DIFFUSE" value= "0" enum= "CanvasTextureChannel" >
</constant>
<constant name= "CANVAS_TEXTURE_CHANNEL_NORMAL" value= "1" enum= "CanvasTextureChannel" >
</constant>
<constant name= "CANVAS_TEXTURE_CHANNEL_SPECULAR" value= "2" enum= "CanvasTextureChannel" >
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "NINE_PATCH_STRETCH" value= "0" enum= "NinePatchAxisMode" >
2017-11-26 16:37:37 +01:00
The nine patch gets stretched where needed.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "NINE_PATCH_TILE" value= "1" enum= "NinePatchAxisMode" >
2017-11-26 16:37:37 +01:00
The nine patch gets filled with tiles where needed.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "NINE_PATCH_TILE_FIT" value= "2" enum= "NinePatchAxisMode" >
2017-11-26 16:37:37 +01:00
The nine patch gets filled with tiles where needed and stretches them a bit if needed.
2017-10-21 12:02:08 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "CANVAS_ITEM_TEXTURE_FILTER_DEFAULT" value= "0" enum= "CanvasItemTextureFilter" >
2020-04-17 01:05:25 +02:00
Uses the default filter mode for this [Viewport].
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "CANVAS_ITEM_TEXTURE_FILTER_NEAREST" value= "1" enum= "CanvasItemTextureFilter" >
2020-04-17 01:05:25 +02:00
The texture filter reads from the nearest pixel only. The simplest and fastest method of filtering, but the texture will look pixelized.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "CANVAS_ITEM_TEXTURE_FILTER_LINEAR" value= "2" enum= "CanvasItemTextureFilter" >
2020-04-17 01:05:25 +02:00
The texture filter blends between the nearest 4 pixels. Use this when you want to avoid a pixelated style, but do not want mipmaps.
2020-02-12 09:59:06 +01:00
</constant>
2020-02-20 00:31:43 +01:00
<constant name= "CANVAS_ITEM_TEXTURE_FILTER_NEAREST_WITH_MIPMAPS" value= "3" enum= "CanvasItemTextureFilter" >
2020-04-17 01:05:25 +02:00
The texture filter reads from the nearest pixel in the nearest mipmap. The fastest way to read from textures with mipmaps.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "CANVAS_ITEM_TEXTURE_FILTER_LINEAR_WITH_MIPMAPS" value= "4" enum= "CanvasItemTextureFilter" >
2020-04-17 01:05:25 +02:00
The texture filter blends between the nearest 4 pixels and between the nearest 2 mipmaps.
2020-02-12 09:59:06 +01:00
</constant>
2020-02-20 00:31:43 +01:00
<constant name= "CANVAS_ITEM_TEXTURE_FILTER_NEAREST_WITH_MIPMAPS_ANISOTROPIC" value= "5" enum= "CanvasItemTextureFilter" >
2020-04-17 01:05:25 +02:00
The texture filter reads from the nearest pixel, but selects a mipmap based on the angle between the surface and the camera view. This reduces artifacts on surfaces that are almost in line with the camera.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "CANVAS_ITEM_TEXTURE_FILTER_LINEAR_WITH_MIPMAPS_ANISOTROPIC" value= "6" enum= "CanvasItemTextureFilter" >
2020-04-17 01:05:25 +02:00
The texture filter blends between the nearest 4 pixels and selects a mipmap based on the angle between the surface and the camera view. This reduces artifacts on surfaces that are almost in line with the camera. This is the slowest of the filtering options, but results in the highest quality texturing.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "CANVAS_ITEM_TEXTURE_FILTER_MAX" value= "7" enum= "CanvasItemTextureFilter" >
2020-04-17 01:05:25 +02:00
Max value for [enum CanvasItemTextureFilter] enum.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "CANVAS_ITEM_TEXTURE_REPEAT_DEFAULT" value= "0" enum= "CanvasItemTextureRepeat" >
2020-04-17 01:05:25 +02:00
Uses the default repeat mode for this [Viewport].
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "CANVAS_ITEM_TEXTURE_REPEAT_DISABLED" value= "1" enum= "CanvasItemTextureRepeat" >
2020-04-17 01:05:25 +02:00
Disables textures repeating. Instead, when reading UVs outside the 0-1 range, the value will be clamped to the edge of the texture, resulting in a stretched out look at the borders of the texture.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "CANVAS_ITEM_TEXTURE_REPEAT_ENABLED" value= "2" enum= "CanvasItemTextureRepeat" >
2020-04-17 01:05:25 +02:00
Enables the texture to repeat when UV coordinates are outside the 0-1 range. If using one of the linear filtering modes, this can result in artifacts at the edges of a texture when the sampler filters across the edges of the texture.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "CANVAS_ITEM_TEXTURE_REPEAT_MIRROR" value= "3" enum= "CanvasItemTextureRepeat" >
2020-04-17 01:05:25 +02:00
Flip the texture when repeating so that the edge lines up instead of abruptly changing.
2020-02-12 09:59:06 +01:00
</constant>
<constant name= "CANVAS_ITEM_TEXTURE_REPEAT_MAX" value= "4" enum= "CanvasItemTextureRepeat" >
2020-04-17 01:05:25 +02:00
Max value for [enum CanvasItemTextureRepeat] enum.
2020-02-12 09:59:06 +01:00
</constant>
2020-11-04 15:38:26 +01:00
<constant name= "CANVAS_GROUP_MODE_DISABLED" value= "0" enum= "CanvasGroupMode" >
</constant>
<constant name= "CANVAS_GROUP_MODE_OPAQUE" value= "1" enum= "CanvasGroupMode" >
</constant>
<constant name= "CANVAS_GROUP_MODE_TRANSPARENT" value= "2" enum= "CanvasGroupMode" >
</constant>
<constant name= "CANVAS_LIGHT_MODE_POINT" value= "0" enum= "CanvasLightMode" >
</constant>
<constant name= "CANVAS_LIGHT_MODE_DIRECTIONAL" value= "1" enum= "CanvasLightMode" >
</constant>
<constant name= "CANVAS_LIGHT_BLEND_MODE_ADD" value= "0" enum= "CanvasLightBlendMode" >
2017-11-26 16:37:37 +01:00
Adds light color additive to the canvas.
2017-10-21 12:02:08 +02:00
</constant>
2020-11-04 15:38:26 +01:00
<constant name= "CANVAS_LIGHT_BLEND_MODE_SUB" value= "1" enum= "CanvasLightBlendMode" >
2017-11-26 16:37:37 +01:00
Adds light color subtractive to the canvas.
2017-10-21 12:02:08 +02:00
</constant>
2020-11-04 15:38:26 +01:00
<constant name= "CANVAS_LIGHT_BLEND_MODE_MIX" value= "2" enum= "CanvasLightBlendMode" >
2017-11-26 16:37:37 +01:00
The light adds color depending on transparency.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "CANVAS_LIGHT_FILTER_NONE" value= "0" enum= "CanvasLightShadowFilter" >
2020-01-06 00:36:50 +01:00
Do not apply a filter to canvas light shadows.
2017-10-21 12:02:08 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "CANVAS_LIGHT_FILTER_PCF5" value= "1" enum= "CanvasLightShadowFilter" >
2020-01-06 00:36:50 +01:00
Use PCF5 filtering to filter canvas light shadows.
2017-10-21 12:02:08 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "CANVAS_LIGHT_FILTER_PCF13" value= "2" enum= "CanvasLightShadowFilter" >
2020-01-06 00:36:50 +01:00
Use PCF13 filtering to filter canvas light shadows.
2017-10-21 12:02:08 +02:00
</constant>
2020-02-12 09:59:06 +01:00
<constant name= "CANVAS_LIGHT_FILTER_MAX" value= "3" enum= "CanvasLightShadowFilter" >
2020-04-17 01:05:25 +02:00
Max value of the [enum CanvasLightShadowFilter] enum.
2020-02-12 09:59:06 +01:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "CANVAS_OCCLUDER_POLYGON_CULL_DISABLED" value= "0" enum= "CanvasOccluderPolygonCullMode" >
2017-11-26 16:37:37 +01:00
Culling of the canvas occluder is disabled.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "CANVAS_OCCLUDER_POLYGON_CULL_CLOCKWISE" value= "1" enum= "CanvasOccluderPolygonCullMode" >
2017-11-26 16:37:37 +01:00
Culling of the canvas occluder is clockwise.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "CANVAS_OCCLUDER_POLYGON_CULL_COUNTER_CLOCKWISE" value= "2" enum= "CanvasOccluderPolygonCullMode" >
2017-11-26 16:37:37 +01:00
Culling of the canvas occluder is counterclockwise.
2017-10-21 12:02:08 +02:00
</constant>
2020-04-20 11:48:00 +02:00
<constant name= "GLOBAL_VAR_TYPE_BOOL" value= "0" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_BVEC2" value= "1" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_BVEC3" value= "2" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_BVEC4" value= "3" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_INT" value= "4" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_IVEC2" value= "5" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_IVEC3" value= "6" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_IVEC4" value= "7" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_RECT2I" value= "8" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_UINT" value= "9" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_UVEC2" value= "10" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_UVEC3" value= "11" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_UVEC4" value= "12" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_FLOAT" value= "13" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_VEC2" value= "14" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_VEC3" value= "15" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_VEC4" value= "16" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_COLOR" value= "17" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_RECT2" value= "18" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_MAT2" value= "19" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_MAT3" value= "20" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_MAT4" value= "21" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_TRANSFORM_2D" value= "22" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_TRANSFORM" value= "23" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_SAMPLER2D" value= "24" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_SAMPLER2DARRAY" value= "25" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_SAMPLER3D" value= "26" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_SAMPLERCUBE" value= "27" enum= "GlobalVariableType" >
</constant>
<constant name= "GLOBAL_VAR_TYPE_MAX" value= "28" enum= "GlobalVariableType" >
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "INFO_OBJECTS_IN_FRAME" value= "0" enum= "RenderInfo" >
2017-11-26 16:37:37 +01:00
The amount of objects in the frame.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "INFO_VERTICES_IN_FRAME" value= "1" enum= "RenderInfo" >
2017-11-26 16:37:37 +01:00
The amount of vertices in the frame.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "INFO_MATERIAL_CHANGES_IN_FRAME" value= "2" enum= "RenderInfo" >
2017-11-26 16:37:37 +01:00
The amount of modified materials in the frame.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "INFO_SHADER_CHANGES_IN_FRAME" value= "3" enum= "RenderInfo" >
2017-11-26 16:37:37 +01:00
The amount of shader rebinds in the frame.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "INFO_SURFACE_CHANGES_IN_FRAME" value= "4" enum= "RenderInfo" >
2017-11-26 16:37:37 +01:00
The amount of surface changes in the frame.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "INFO_DRAW_CALLS_IN_FRAME" value= "5" enum= "RenderInfo" >
2017-11-26 16:37:37 +01:00
The amount of draw calls in frame.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "INFO_USAGE_VIDEO_MEM_TOTAL" value= "6" enum= "RenderInfo" >
2020-02-13 10:08:52 +01:00
Unimplemented in the GLES2 rendering backend, always returns 0.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "INFO_VIDEO_MEM_USED" value= "7" enum= "RenderInfo" >
2019-06-26 15:57:13 +02:00
The amount of video memory used, i.e. texture and vertex memory combined.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "INFO_TEXTURE_MEM_USED" value= "8" enum= "RenderInfo" >
2017-11-26 16:37:37 +01:00
The amount of texture memory used.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "INFO_VERTEX_MEM_USED" value= "9" enum= "RenderInfo" >
2017-11-26 16:37:37 +01:00
The amount of vertex memory used.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "FEATURE_SHADERS" value= "0" enum= "Features" >
2020-01-06 00:36:50 +01:00
Hardware supports shaders. This enum is currently unused in Godot 3.x.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "FEATURE_MULTITHREADED" value= "1" enum= "Features" >
2020-01-06 00:36:50 +01:00
Hardware supports multithreading. This enum is currently unused in Godot 3.x.
2017-10-21 12:02:08 +02:00
</constant>
2017-09-12 22:42:36 +02:00
</constants>
2017-12-10 00:43:30 +01:00
</class>