2017-09-12 22:42:36 +02:00
<?xml version="1.0" encoding="UTF-8" ?>
2022-03-16 23:01:02 +01:00
<class name= "VisualServer" inherits= "Object" version= "3.5" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2017-09-12 22:42:36 +02:00
<brief_description >
Server for anything visible.
</brief_description>
<description >
Server for anything visible. The visual server is the API backend for everything visible. The whole scene system mounts on it to display.
The visual server is completely opaque, the internals are entirely implementation specific and cannot be accessed.
2020-01-06 00:36:50 +01:00
The visual server can be used to bypass the scene system entirely.
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].
In 3D, all visual objects must be associated with a scenario. The scenario is a visual representation of the world. If accessing the visual server from a running game, the scenario can be accessed from the scene tree from any [Spatial] node with [method Spatial.get_world]. 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 >
2021-12-10 11:29:38 +01:00
<link > $DOCS_URL/tutorials/performance/using_servers.html</link>
2017-09-12 22:42:36 +02:00
</tutorials>
<methods >
2017-10-21 12:02:08 +02:00
<method name= "black_bars_set_images" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "left" type= "RID" />
<argument index= "1" name= "top" type= "RID" />
<argument index= "2" name= "right" type= "RID" />
<argument index= "3" name= "bottom" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets images to be rendered in the window margin.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "black_bars_set_margins" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "left" type= "int" />
<argument index= "1" name= "top" type= "int" />
<argument index= "2" name= "right" type= "int" />
<argument index= "3" name= "bottom" type= "int" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets margin size, where black bars (or images, if [method black_bars_set_images] was used) are rendered.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "camera_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2019-12-15 01:38:19 +01:00
Creates a camera and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]camera_*[/code] VisualServer functions.
2020-01-04 08:24:40 +01:00
Once finished with your RID, you will want to free the RID using the VisualServer's [method free_rid] static method.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "camera_set_cull_mask" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "camera" type= "RID" />
<argument index= "1" name= "layers" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-23 11:14:14 +01:00
Sets the cull mask associated with this camera. The cull mask describes which 3D layers are rendered by this camera. Equivalent to [member Camera.cull_mask].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "camera_set_environment" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "camera" type= "RID" />
<argument index= "1" name= "env" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2019-12-15 01:38:19 +01:00
Sets the environment used by this camera. Equivalent to [member Camera.environment].
2018-02-19 10:47:16 +01:00
</description>
</method>
2019-04-23 21:39:09 +02:00
<method name= "camera_set_frustum" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "camera" type= "RID" />
<argument index= "1" name= "size" type= "float" />
<argument index= "2" name= "offset" type= "Vector2" />
<argument index= "3" name= "z_near" type= "float" />
<argument index= "4" name= "z_far" type= "float" />
2019-04-23 21:39:09 +02:00
<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" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "camera" type= "RID" />
<argument index= "1" name= "size" type= "float" />
<argument index= "2" name= "z_near" type= "float" />
<argument index= "3" name= "z_far" type= "float" />
2018-02-19 10:47:16 +01:00
<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" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "camera" type= "RID" />
<argument index= "1" name= "fovy_degrees" type= "float" />
<argument index= "2" name= "z_near" type= "float" />
<argument index= "3" name= "z_far" type= "float" />
2018-02-19 10:47:16 +01:00
<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" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "camera" type= "RID" />
<argument index= "1" name= "transform" type= "Transform" />
2018-02-19 10:47:16 +01:00
<description >
2019-12-15 01:38:19 +01:00
Sets [Transform] of camera.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "camera_set_use_vertical_aspect" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "camera" type= "RID" />
<argument index= "1" name= "enable" type= "bool" />
2018-02-19 10:47:16 +01:00
<description >
2019-12-15 01:38:19 +01:00
If [code]true[/code], preserves the horizontal aspect ratio which is equivalent to [constant Camera.KEEP_WIDTH]. If [code]false[/code], preserves the vertical aspect ratio which is equivalent to [constant Camera.KEEP_HEIGHT].
2018-02-19 10:47:16 +01:00
</description>
</method>
2017-10-21 12:02:08 +02:00
<method name= "canvas_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-04 08:24:40 +01: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] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer's [method free_rid] static method.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_add_circle" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "pos" type= "Vector2" />
<argument index= "2" name= "radius" type= "float" />
<argument index= "3" name= "color" type= "Color" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Adds a circle command to the [CanvasItem]'s draw commands.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_add_clip_ignore" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "ignore" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
If ignore is [code]true[/code], the VisualServer does not perform clipping.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_add_line" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "from" type= "Vector2" />
<argument index= "2" name= "to" type= "Vector2" />
<argument index= "3" name= "color" type= "Color" />
<argument index= "4" name= "width" type= "float" default= "1.0" />
<argument index= "5" name= "antialiased" type= "bool" default= "false" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Adds a line command to the [CanvasItem]'s draw commands.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_add_mesh" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "mesh" type= "RID" />
<argument index= "2" name= "transform" type= "Transform2D" default= "Transform2D( 1, 0, 0, 1, 0, 0 )" />
<argument index= "3" name= "modulate" type= "Color" default= "Color( 1, 1, 1, 1 )" />
<argument index= "4" name= "texture" type= "RID" />
<argument index= "5" name= "normal_map" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Adds a mesh command to the [CanvasItem]'s draw commands.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_add_multimesh" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "mesh" type= "RID" />
<argument index= "2" name= "texture" type= "RID" />
<argument index= "3" name= "normal_map" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Adds a [MultiMesh] to the [CanvasItem]'s draw commands. Only affects its aabb at the moment.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_add_nine_patch" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "rect" type= "Rect2" />
<argument index= "2" name= "source" type= "Rect2" />
<argument index= "3" name= "texture" type= "RID" />
<argument index= "4" name= "topleft" type= "Vector2" />
<argument index= "5" name= "bottomright" type= "Vector2" />
<argument index= "6" name= "x_axis_mode" type= "int" enum= "VisualServer.NinePatchAxisMode" default= "0" />
<argument index= "7" name= "y_axis_mode" type= "int" enum= "VisualServer.NinePatchAxisMode" default= "0" />
<argument index= "8" name= "draw_center" type= "bool" default= "true" />
<argument index= "9" name= "modulate" type= "Color" default= "Color( 1, 1, 1, 1 )" />
<argument index= "10" name= "normal_map" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Adds a nine patch image to the [CanvasItem]'s draw commands.
See [NinePatchRect] for more explanation.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_add_particles" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "particles" type= "RID" />
<argument index= "2" name= "texture" type= "RID" />
<argument index= "3" name= "normal_map" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2019-06-22 01:04:47 +02:00
Adds a particle system to the [CanvasItem]'s draw commands.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_add_polygon" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "points" type= "PoolVector2Array" />
<argument index= "2" name= "colors" type= "PoolColorArray" />
<argument index= "3" name= "uvs" type= "PoolVector2Array" default= "PoolVector2Array( )" />
<argument index= "4" name= "texture" type= "RID" />
<argument index= "5" name= "normal_map" type= "RID" />
<argument index= "6" name= "antialiased" type= "bool" default= "false" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Adds a polygon to the [CanvasItem]'s draw commands.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_add_polyline" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "points" type= "PoolVector2Array" />
<argument index= "2" name= "colors" type= "PoolColorArray" />
<argument index= "3" name= "width" type= "float" default= "1.0" />
<argument index= "4" name= "antialiased" type= "bool" default= "false" />
2017-10-21 12:02:08 +02:00
<description >
2018-01-18 21:37:17 +01:00
Adds a polyline, which is a line from multiple points with a width, to the [CanvasItem]'s draw commands.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_add_primitive" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "points" type= "PoolVector2Array" />
<argument index= "2" name= "colors" type= "PoolColorArray" />
<argument index= "3" name= "uvs" type= "PoolVector2Array" />
<argument index= "4" name= "texture" type= "RID" />
<argument index= "5" name= "width" type= "float" default= "1.0" />
<argument index= "6" name= "normal_map" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Adds a primitive to the [CanvasItem]'s draw commands.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_add_rect" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "rect" type= "Rect2" />
<argument index= "2" name= "color" type= "Color" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Adds a rectangle to the [CanvasItem]'s draw commands.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_add_set_transform" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "transform" type= "Transform2D" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Adds a [Transform2D] command to the [CanvasItem]'s draw commands.
2018-04-21 16:10:34 +02:00
This sets the extra_matrix uniform when executed. This affects the later commands of the canvas item.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_add_texture_rect" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "rect" type= "Rect2" />
<argument index= "2" name= "texture" type= "RID" />
<argument index= "3" name= "tile" type= "bool" default= "false" />
<argument index= "4" name= "modulate" type= "Color" default= "Color( 1, 1, 1, 1 )" />
<argument index= "5" name= "transpose" type= "bool" default= "false" />
<argument index= "6" name= "normal_map" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Adds a textured rect to the [CanvasItem]'s draw commands.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_add_texture_rect_region" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "rect" type= "Rect2" />
<argument index= "2" name= "texture" type= "RID" />
<argument index= "3" name= "src_rect" type= "Rect2" />
<argument index= "4" name= "modulate" type= "Color" default= "Color( 1, 1, 1, 1 )" />
<argument index= "5" name= "transpose" type= "bool" default= "false" />
<argument index= "6" name= "normal_map" type= "RID" />
<argument index= "7" name= "clip_uv" type= "bool" default= "true" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Adds a texture rect with region setting to the [CanvasItem]'s draw commands.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_add_triangle_array" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "indices" type= "PoolIntArray" />
<argument index= "2" name= "points" type= "PoolVector2Array" />
<argument index= "3" name= "colors" type= "PoolColorArray" />
<argument index= "4" name= "uvs" type= "PoolVector2Array" default= "PoolVector2Array( )" />
<argument index= "5" name= "bones" type= "PoolIntArray" default= "PoolIntArray( )" />
<argument index= "6" name= "weights" type= "PoolRealArray" default= "PoolRealArray( )" />
<argument index= "7" name= "texture" type= "RID" />
<argument index= "8" name= "count" type= "int" default= "-1" />
<argument index= "9" name= "normal_map" type= "RID" />
<argument index= "10" name= "antialiased" type= "bool" default= "false" />
<argument index= "11" name= "antialiasing_use_indices" type= "bool" default= "false" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Adds a triangle array to the [CanvasItem]'s draw commands.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_clear" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Clears the [CanvasItem] and removes all commands in it.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-04 08:24:40 +01:00
Creates a new [CanvasItem] and returns its [RID]. It can be accessed with the RID that is returned. This RID will be used in all [code]canvas_item_*[/code] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer's [method free_rid] static method.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_set_clip" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "clip" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets clipping for the [CanvasItem].
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_set_copy_to_backbuffer" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "enabled" type= "bool" />
<argument index= "2" name= "rect" type= "Rect2" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets the [CanvasItem] to copy a rect to the backbuffer.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_set_custom_rect" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "use_custom_rect" type= "bool" />
<argument index= "2" name= "rect" type= "Rect2" default= "Rect2( 0, 0, 0, 0 )" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Defines a custom drawing rectangle for the [CanvasItem].
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_set_distance_field_mode" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "enabled" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Enables the use of distance fields for GUI elements that are rendering distance field based fonts.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_set_draw_behind_parent" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "enabled" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets [CanvasItem] to be drawn behind its parent.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_set_draw_index" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "index" type= "int" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets the index for the [CanvasItem].
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_set_light_mask" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "mask" type= "int" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
The light mask. See [LightOccluder2D] for more information on light masks.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_set_material" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "material" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets a new material to the [CanvasItem].
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_set_modulate" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "color" type= "Color" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets the color that modulates the [CanvasItem] and its children.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_set_parent" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "parent" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-06 00:36:50 +01:00
Sets the parent for the [CanvasItem]. The parent can be another canvas item, or it can be the root canvas that is attached to the viewport.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_set_self_modulate" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "color" type= "Color" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets the color that modulates the [CanvasItem] without children.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_set_sort_children_by_y" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "enabled" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets if [CanvasItem]'s children should be sorted by y-position.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_set_transform" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "transform" type= "Transform2D" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets the [CanvasItem]'s [Transform2D].
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_set_use_parent_material" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "enabled" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets if the [CanvasItem] uses its parent's material.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_item_set_visible" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "visible" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets if the canvas item (including its children) is visible.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-01-04 01:48:24 +01:00
<method name= "canvas_item_set_z_as_relative_to_parent" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "enabled" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2019-06-22 01:04: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>
2018-01-04 01:48:24 +01:00
<method name= "canvas_item_set_z_index" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "item" type= "RID" />
<argument index= "1" name= "z_index" type= "int" />
2017-10-21 12:02:08 +02:00
<description >
2019-06-22 01:04: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>
<method name= "canvas_light_attach_to_canvas" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "canvas" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Attaches the canvas light to the canvas. Removes it from its previous canvas.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-04 08:24:40 +01:00
Creates a canvas light and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]canvas_light_*[/code] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer's [method free_rid] static method.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_occluder_attach_to_canvas" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "occluder" type= "RID" />
<argument index= "1" name= "canvas" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Attaches a light occluder to the canvas. Removes it from its previous canvas.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_occluder_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-04 08:24:40 +01:00
Creates a light occluder and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]canvas_light_ocluder_*[/code] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer's [method free_rid] static method.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_occluder_set_enabled" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "occluder" type= "RID" />
<argument index= "1" name= "enabled" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Enables or disables light occluder.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_occluder_set_light_mask" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "occluder" type= "RID" />
<argument index= "1" name= "mask" type= "int" />
2017-10-21 12:02:08 +02:00
<description >
2019-06-22 01:04:47 +02:00
The light mask. See [LightOccluder2D] for more information on light masks.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_occluder_set_polygon" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "occluder" type= "RID" />
<argument index= "1" name= "polygon" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets a light occluder's polygon.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_occluder_set_transform" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "occluder" type= "RID" />
<argument index= "1" name= "transform" type= "Transform2D" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets a light occluder's [Transform2D].
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_set_color" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "color" type= "Color" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets the color for a light.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_set_enabled" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "enabled" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Enables or disables a canvas light.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_set_energy" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "energy" type= "float" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets a canvas light's energy.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_set_height" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "height" type= "float" />
2017-10-21 12:02:08 +02:00
<description >
2017-12-10 00:43:30 +01:00
Sets a canvas light's height.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_set_item_cull_mask" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "mask" type= "int" />
2017-10-21 12:02:08 +02:00
<description >
2019-06-22 01:04:47 +02:00
The light mask. See [LightOccluder2D] for more information on light masks.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_set_item_shadow_cull_mask" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "mask" type= "int" />
2017-10-21 12:02:08 +02:00
<description >
2019-06-22 01:04: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.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_set_layer_range" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "min_layer" type= "int" />
<argument index= "2" name= "max_layer" type= "int" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
The layer range that gets rendered with this light.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_set_mode" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "mode" type= "int" enum= "VisualServer.CanvasLightMode" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-06 23:09:20 +01:00
The mode of the light, see [enum CanvasLightMode] constants.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_set_scale" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "scale" type= "float" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Sets the texture's scale factor of the light. Equivalent to [member Light2D.texture_scale].
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_set_shadow_buffer_size" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "size" type= "int" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets the width of the shadow buffer, size gets scaled to the next power of two for this.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_set_shadow_color" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "color" type= "Color" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets the color of the canvas light's shadow.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_set_shadow_enabled" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "enabled" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Enables or disables the canvas light's shadow.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_set_shadow_filter" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "filter" type= "int" enum= "VisualServer.CanvasLightShadowFilter" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-06 23:09:20 +01:00
Sets the canvas light's shadow's filter, see [enum CanvasLightShadowFilter] constants.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_set_shadow_gradient_length" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "length" type= "float" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets the length of the shadow's gradient.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_set_shadow_smooth" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "smooth" type= "float" />
2017-10-21 12:02:08 +02:00
<description >
2019-06-22 01:04:47 +02:00
Smoothens the shadow. The lower, the smoother.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_set_texture" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "texture" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Sets texture to be used by light. Equivalent to [member Light2D.texture].
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_set_texture_offset" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "offset" type= "Vector2" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Sets the offset of the light's texture. Equivalent to [member Light2D.offset].
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_set_transform" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "transform" type= "Transform2D" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets the canvas light's [Transform2D].
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_light_set_z_range" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "min_z" type= "int" />
<argument index= "2" name= "max_z" type= "int" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01: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].
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_occluder_polygon_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-04 08:24:40 +01:00
Creates a new light occluder polygon and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]canvas_occluder_polygon_*[/code] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer's [method free_rid] static method.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_occluder_polygon_set_cull_mode" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "occluder_polygon" type= "RID" />
<argument index= "1" name= "mode" type= "int" enum= "VisualServer.CanvasOccluderPolygonCullMode" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-06 23:09:20 +01:00
Sets an occluder polygons cull mode. See [enum CanvasOccluderPolygonCullMode] constants.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_occluder_polygon_set_shape" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "occluder_polygon" type= "RID" />
<argument index= "1" name= "shape" type= "PoolVector2Array" />
<argument index= "2" name= "closed" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets the shape of the occluder polygon.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_occluder_polygon_set_shape_as_lines" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "occluder_polygon" type= "RID" />
<argument index= "1" name= "shape" type= "PoolVector2Array" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets the shape of the occluder polygon as lines.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_set_item_mirroring" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "canvas" type= "RID" />
<argument index= "1" name= "item" type= "RID" />
<argument index= "2" name= "mirroring" type= "Vector2" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
A copy of the canvas item will be drawn with a local offset of the mirroring [Vector2].
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "canvas_set_modulate" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "canvas" type= "RID" />
<argument index= "1" name= "color" type= "Color" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Modulates all colors in the given canvas.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "directional_light_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2019-12-15 01:38:19 +01:00
Creates a directional light and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID can be used in most [code]light_*[/code] VisualServer functions.
2020-01-04 08:24:40 +01:00
Once finished with your RID, you will want to free the RID using the VisualServer'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.
2018-02-19 10:47:16 +01:00
</description>
</method>
2017-10-21 12:02:08 +02:00
<method name= "draw" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "swap_buffers" type= "bool" default= "true" />
<argument index= "1" name= "frame_step" type= "float" default= "0.0" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Draws a frame. [i]This method is deprecated[/i], please use [method force_draw] instead.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "environment_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Creates an environment and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]environment_*[/code] VisualServer functions.
2020-01-04 08:24:40 +01:00
Once finished with your RID, you will want to free the RID using the VisualServer's [method free_rid] static method.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "environment_set_adjustment" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "env" type= "RID" />
<argument index= "1" name= "enable" type= "bool" />
<argument index= "2" name= "brightness" type= "float" />
<argument index= "3" name= "contrast" type= "float" />
<argument index= "4" name= "saturation" type= "float" />
<argument index= "5" name= "ramp" type= "RID" />
2017-09-12 22:42:36 +02:00
<description >
2019-12-15 01:38:19 +01:00
Sets the values to be used with the "Adjustment" post-process effect. See [Environment] for more details.
2017-09-12 22:42:36 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "environment_set_ambient_light" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "env" type= "RID" />
<argument index= "1" name= "color" type= "Color" />
<argument index= "2" name= "energy" type= "float" default= "1.0" />
<argument index= "3" name= "sky_contibution" type= "float" default= "0.0" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Sets the ambient light parameters. See [Environment] for more details.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "environment_set_background" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "env" type= "RID" />
<argument index= "1" name= "bg" type= "int" enum= "VisualServer.EnvironmentBG" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Sets the [i]BGMode[/i] of the environment. Equivalent to [member Environment.background_mode].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "environment_set_bg_color" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "env" type= "RID" />
<argument index= "1" name= "color" type= "Color" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Color displayed for clear areas of the scene (if using Custom color or Color+Sky background modes).
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "environment_set_bg_energy" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "env" type= "RID" />
<argument index= "1" name= "energy" type= "float" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Sets the intensity of the background color.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "environment_set_canvas_max_layer" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "env" type= "RID" />
<argument index= "1" name= "max_layer" type= "int" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Sets the maximum layer to use if using Canvas background mode.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "environment_set_dof_blur_far" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "env" type= "RID" />
<argument index= "1" name= "enable" type= "bool" />
<argument index= "2" name= "distance" type= "float" />
<argument index= "3" name= "transition" type= "float" />
<argument index= "4" name= "far_amount" type= "float" />
<argument index= "5" name= "quality" type= "int" enum= "VisualServer.EnvironmentDOFBlurQuality" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Sets the values to be used with the "DoF Far Blur" post-process effect. See [Environment] for more details.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "environment_set_dof_blur_near" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "env" type= "RID" />
<argument index= "1" name= "enable" type= "bool" />
<argument index= "2" name= "distance" type= "float" />
<argument index= "3" name= "transition" type= "float" />
<argument index= "4" name= "far_amount" type= "float" />
<argument index= "5" name= "quality" type= "int" enum= "VisualServer.EnvironmentDOFBlurQuality" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Sets the values to be used with the "DoF Near Blur" post-process effect. See [Environment] for more details.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "environment_set_fog" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "env" type= "RID" />
<argument index= "1" name= "enable" type= "bool" />
<argument index= "2" name= "color" type= "Color" />
<argument index= "3" name= "sun_color" type= "Color" />
<argument index= "4" name= "sun_amount" type= "float" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Sets the variables to be used with the scene fog. See [Environment] for more details.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "environment_set_fog_depth" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "env" type= "RID" />
<argument index= "1" name= "enable" type= "bool" />
<argument index= "2" name= "depth_begin" type= "float" />
<argument index= "3" name= "depth_end" type= "float" />
<argument index= "4" name= "depth_curve" type= "float" />
<argument index= "5" name= "transmit" type= "bool" />
<argument index= "6" name= "transmit_curve" type= "float" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Sets the variables to be used with the fog depth effect. See [Environment] for more details.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "environment_set_fog_height" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "env" type= "RID" />
<argument index= "1" name= "enable" type= "bool" />
<argument index= "2" name= "min_height" type= "float" />
<argument index= "3" name= "max_height" type= "float" />
<argument index= "4" name= "height_curve" type= "float" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Sets the variables to be used with the fog height effect. See [Environment] for more details.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "environment_set_glow" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "env" type= "RID" />
<argument index= "1" name= "enable" type= "bool" />
<argument index= "2" name= "level_flags" type= "int" />
<argument index= "3" name= "intensity" type= "float" />
<argument index= "4" name= "strength" type= "float" />
<argument index= "5" name= "bloom_threshold" type= "float" />
<argument index= "6" name= "blend_mode" type= "int" enum= "VisualServer.EnvironmentGlowBlendMode" />
<argument index= "7" name= "hdr_bleed_threshold" type= "float" />
<argument index= "8" name= "hdr_bleed_scale" type= "float" />
<argument index= "9" name= "hdr_luminance_cap" type= "float" />
<argument index= "10" name= "bicubic_upscale" type= "bool" />
2021-08-11 04:42:56 +02:00
<argument index= "11" name= "high_quality" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Sets the variables to be used with the "glow" post-process effect. See [Environment] for more details.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "environment_set_sky" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "env" type= "RID" />
<argument index= "1" name= "sky" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Sets the [Sky] to be used as the environment's background when using [i]BGMode[/i] sky. Equivalent to [member Environment.background_sky].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "environment_set_sky_custom_fov" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "env" type= "RID" />
<argument index= "1" name= "scale" type= "float" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Sets a custom field of view for the background [Sky]. Equivalent to [member Environment.background_sky_custom_fov].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-12-27 11:10:09 +01:00
<method name= "environment_set_sky_orientation" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "env" type= "RID" />
<argument index= "1" name= "orientation" type= "Basis" />
2018-12-27 11:10:09 +01:00
<description >
2019-12-15 01:38:19 +01:00
Sets the rotation of the background [Sky] expressed as a [Basis]. Equivalent to [member Environment.background_sky_orientation].
2018-12-27 11:10:09 +01:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "environment_set_ssao" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "env" type= "RID" />
<argument index= "1" name= "enable" type= "bool" />
<argument index= "2" name= "radius" type= "float" />
<argument index= "3" name= "intensity" type= "float" />
<argument index= "4" name= "radius2" type= "float" />
<argument index= "5" name= "intensity2" type= "float" />
<argument index= "6" name= "bias" type= "float" />
<argument index= "7" name= "light_affect" type= "float" />
<argument index= "8" name= "ao_channel_affect" type= "float" />
<argument index= "9" name= "color" type= "Color" />
<argument index= "10" name= "quality" type= "int" enum= "VisualServer.EnvironmentSSAOQuality" />
<argument index= "11" name= "blur" type= "int" enum= "VisualServer.EnvironmentSSAOBlur" />
<argument index= "12" name= "bilateral_sharpness" type= "float" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Sets the variables to be used with the "Screen Space Ambient Occlusion (SSAO)" post-process effect. See [Environment] for more details.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "environment_set_ssr" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "env" type= "RID" />
<argument index= "1" name= "enable" type= "bool" />
<argument index= "2" name= "max_steps" type= "int" />
<argument index= "3" name= "fade_in" type= "float" />
<argument index= "4" name= "fade_out" type= "float" />
<argument index= "5" name= "depth_tolerance" type= "float" />
<argument index= "6" name= "roughness" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Sets the variables to be used with the "screen space reflections" post-process effect. See [Environment] for more details.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "environment_set_tonemap" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "env" type= "RID" />
<argument index= "1" name= "tone_mapper" type= "int" enum= "VisualServer.EnvironmentToneMapper" />
<argument index= "2" name= "exposure" type= "float" />
<argument index= "3" name= "white" type= "float" />
<argument index= "4" name= "auto_exposure" type= "bool" />
<argument index= "5" name= "min_luminance" type= "float" />
<argument index= "6" name= "max_luminance" type= "float" />
<argument index= "7" name= "auto_exp_speed" type= "float" />
<argument index= "8" name= "auto_exp_grey" type= "float" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Sets the variables to be used with the "tonemap" post-process effect. See [Environment] for more details.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "finish" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
2018-02-19 10:47:16 +01:00
<description >
Removes buffers and clears testcubes.
</description>
</method>
<method name= "force_draw" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "swap_buffers" type= "bool" default= "true" />
<argument index= "1" name= "frame_step" type= "float" default= "0.0" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-15 01:38:19 +01:00
Forces a frame to be drawn when the function is called. Drawing a frame updates all [Viewport]s that are set to update. Use with extreme caution.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "force_sync" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
2018-02-19 10:47:16 +01:00
<description >
2018-02-21 17:30:55 +01:00
Synchronizes threads.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "free_rid" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "rid" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
Tries to free an object in the VisualServer.
</description>
</method>
<method name= "get_render_info" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
<argument index= "0" name= "info" type= "int" enum= "VisualServer.RenderInfo" />
2018-02-19 10:47:16 +01:00
<description >
2019-12-06 23:09:20 +01:00
Returns a certain information, see [enum RenderInfo] for options.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "get_test_cube" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
Returns the id of the test cube. Creates one if none exists.
</description>
</method>
<method name= "get_test_texture" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
Returns the id of the test texture. Creates one if none exists.
</description>
</method>
2019-09-13 20:08:05 +02:00
<method name= "get_video_adapter_name" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "String" />
2019-09-13 20:08:05 +02:00
<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" >
2021-07-30 15:28:05 +02:00
<return type= "String" />
2019-09-13 20:08:05 +02:00
<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>
2018-02-19 10:47:16 +01:00
<method name= "get_white_texture" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
Returns the id of a white texture. Creates one if none exists.
</description>
</method>
<method name= "gi_probe_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Creates a GI probe and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]gi_probe_*[/code] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer's [method free_rid] static method.
To place in a scene, attach this GI probe to an instance using [method instance_set_base] using the returned RID.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_get_bias" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "float" />
<argument index= "0" name= "probe" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Returns the bias value for the GI probe. Bias is used to avoid self occlusion. Equivalent to [member GIProbeData.bias].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_get_bounds" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "AABB" />
<argument index= "0" name= "probe" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Returns the axis-aligned bounding box that covers the full extent of the GI probe.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_get_cell_size" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "float" />
<argument index= "0" name= "probe" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Returns the cell size set by [method gi_probe_set_cell_size].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_get_dynamic_data" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "PoolIntArray" />
<argument index= "0" name= "probe" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Returns the data used by the GI probe.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_get_dynamic_range" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
<argument index= "0" name= "probe" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Returns the dynamic range set for this GI probe. Equivalent to [member GIProbe.dynamic_range].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_get_energy" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "float" />
<argument index= "0" name= "probe" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Returns the energy multiplier for this GI probe. Equivalent to [member GIProbe.energy].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_get_normal_bias" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "float" />
<argument index= "0" name= "probe" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Returns the normal bias for this GI probe. Equivalent to [member GIProbe.normal_bias].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_get_propagation" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "float" />
<argument index= "0" name= "probe" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Returns the propagation value for this GI probe. Equivalent to [member GIProbe.propagation].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_get_to_cell_xform" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Transform" />
<argument index= "0" name= "probe" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Returns the Transform set by [method gi_probe_set_to_cell_xform].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_is_compressed" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "bool" />
<argument index= "0" name= "probe" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Returns [code]true[/code] if the GI probe data associated with this GI probe is compressed. Equivalent to [member GIProbe.compress].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_is_interior" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "bool" />
<argument index= "0" name= "probe" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Returns [code]true[/code] if the GI probe is set to interior, meaning it does not account for sky light. Equivalent to [member GIProbe.interior].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_set_bias" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "bias" type= "float" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the bias value to avoid self-occlusion. Equivalent to [member GIProbe.bias].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_set_bounds" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "bounds" type= "AABB" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the axis-aligned bounding box that covers the extent of the GI probe.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_set_cell_size" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "range" type= "float" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the size of individual cells within the GI probe.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_set_compress" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "enable" type= "bool" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the compression setting for the GI probe data. Compressed data will take up less space but may look worse. Equivalent to [member GIProbe.compress].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_set_dynamic_data" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "data" type= "PoolIntArray" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the data to be used in the GI probe for lighting calculations. Normally this is created and called internally within the [GIProbe] node. You should not try to set this yourself.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_set_dynamic_range" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "range" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the dynamic range of the GI probe. Dynamic range sets the limit for how bright lights can be. A smaller range captures greater detail but limits how bright lights can be. Equivalent to [member GIProbe.dynamic_range].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_set_energy" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "energy" type= "float" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the energy multiplier for this GI probe. A higher energy makes the indirect light from the GI probe brighter. Equivalent to [member GIProbe.energy].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_set_interior" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "enable" type= "bool" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the interior value of this GI probe. A GI probe set to interior does not include the sky when calculating lighting. Equivalent to [member GIProbe.interior].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_set_normal_bias" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "bias" type= "float" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the normal bias for this GI probe. Normal bias behaves similar to the other form of bias and may help reduce self-occlusion. Equivalent to [member GIProbe.normal_bias].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_set_propagation" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "propagation" type= "float" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the propagation of light within this GI probe. Equivalent to [member GIProbe.propagation].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "gi_probe_set_to_cell_xform" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "xform" type= "Transform" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the to cell [Transform] for this GI probe.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "has_changed" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "bool" />
2021-10-05 20:05:57 +02:00
<argument index= "0" name= "queried_priority" type= "int" enum= "VisualServer.ChangedPriority" default= "0" />
2018-02-19 10:47:16 +01:00
<description >
Returns [code]true[/code] if changes have been made to the VisualServer's data. [method draw] is usually called if this happens.
2021-10-05 20:05:57 +02:00
As changes are registered as either high or low priority (e.g. dynamic shaders), this function takes an optional argument to query either low or high priority changes, or any changes.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "has_feature" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "bool" />
<argument index= "0" name= "feature" type= "int" enum= "VisualServer.Features" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Not yet implemented. Always returns [code]false[/code].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "has_os_feature" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "bool" />
<argument index= "0" name= "feature" type= "String" />
2018-02-19 10:47:16 +01:00
<description >
2020-07-10 10:25:06 +02:00
Returns [code]true[/code] if the OS supports a certain feature. Features might be [code]s3tc[/code], [code]etc[/code], [code]etc2[/code], [code]pvrtc[/code] and [code]skinning_fallback[/code].
When rendering with GLES2, returns [code]true[/code] with [code]skinning_fallback[/code] in case the hardware doesn't support the default GPU skinning process.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "immediate_begin" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "immediate" type= "RID" />
<argument index= "1" name= "primitive" type= "int" enum= "VisualServer.PrimitiveType" />
<argument index= "2" name= "texture" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2019-12-15 01:38:19 +01:00
Sets up [ImmediateGeometry] internals to prepare for drawing. Equivalent to [method ImmediateGeometry.begin].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "immediate_clear" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "immediate" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2019-12-15 01:38:19 +01:00
Clears everything that was set up between [method immediate_begin] and [method immediate_end]. Equivalent to [method ImmediateGeometry.clear].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "immediate_color" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "immediate" type= "RID" />
<argument index= "1" name= "color" type= "Color" />
2018-02-19 10:47:16 +01:00
<description >
2019-12-15 01:38:19 +01:00
Sets the color to be used with next vertex. Equivalent to [method ImmediateGeometry.set_color].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "immediate_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Creates an immediate geometry and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]immediate_*[/code] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer's [method free_rid] static method.
To place in a scene, attach this immediate geometry to an instance using [method instance_set_base] using the returned RID.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "immediate_end" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "immediate" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2019-12-15 01:38:19 +01:00
Ends drawing the [ImmediateGeometry] and displays it. Equivalent to [method ImmediateGeometry.end].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "immediate_get_material" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
<argument index= "0" name= "immediate" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2019-12-15 01:38:19 +01:00
Returns the material assigned to the [ImmediateGeometry].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "immediate_normal" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "immediate" type= "RID" />
<argument index= "1" name= "normal" type= "Vector3" />
2018-02-19 10:47:16 +01:00
<description >
2019-12-15 01:38:19 +01:00
Sets the normal to be used with next vertex. Equivalent to [method ImmediateGeometry.set_normal].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "immediate_set_material" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "immediate" type= "RID" />
<argument index= "1" name= "material" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2019-12-15 01:38:19 +01:00
Sets the material to be used to draw the [ImmediateGeometry].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "immediate_tangent" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "immediate" type= "RID" />
<argument index= "1" name= "tangent" type= "Plane" />
2018-02-19 10:47:16 +01:00
<description >
2019-12-15 01:38:19 +01:00
Sets the tangent to be used with next vertex. Equivalent to [method ImmediateGeometry.set_tangent].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "immediate_uv" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "immediate" type= "RID" />
<argument index= "1" name= "tex_uv" type= "Vector2" />
2018-02-19 10:47:16 +01:00
<description >
2019-12-15 01:38:19 +01:00
Sets the UV to be used with next vertex. Equivalent to [method ImmediateGeometry.set_uv].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "immediate_uv2" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "immediate" type= "RID" />
<argument index= "1" name= "tex_uv" type= "Vector2" />
2018-02-19 10:47:16 +01:00
<description >
2019-12-15 01:38:19 +01:00
Sets the UV2 to be used with next vertex. Equivalent to [method ImmediateGeometry.set_uv2].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "immediate_vertex" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "immediate" type= "RID" />
<argument index= "1" name= "vertex" type= "Vector3" />
2018-02-19 10:47:16 +01:00
<description >
2019-12-15 01:38:19 +01:00
Adds the next vertex using the information provided in advance. Equivalent to [method ImmediateGeometry.add_vertex].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "immediate_vertex_2d" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "immediate" type= "RID" />
<argument index= "1" name= "vertex" type= "Vector2" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Adds the next vertex using the information provided in advance. This is a helper class that calls [method immediate_vertex] under the hood. Equivalent to [method ImmediateGeometry.add_vertex].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "init" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Initializes the visual server. This function is called internally by platform-dependent code during engine initialization. If called from a running game, it will not do anything.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instance_attach_object_instance_id" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "instance" type= "RID" />
<argument index= "1" name= "id" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
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].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instance_attach_skeleton" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "instance" type= "RID" />
<argument index= "1" name= "skeleton" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Attaches a skeleton to an instance. Removes the previous skeleton from the instance.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instance_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Creates a visual instance and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]instance_*[/code] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer'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].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instance_create2" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
<argument index= "0" name= "base" type= "RID" />
<argument index= "1" name= "scenario" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Creates a visual instance, adds it to the VisualServer, 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] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer's [method free_rid] static method.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instance_geometry_set_as_instance_lod" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "instance" type= "RID" />
<argument index= "1" name= "as_lod_of_instance" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Not implemented in Godot 3.x.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instance_geometry_set_cast_shadows_setting" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "instance" type= "RID" />
<argument index= "1" name= "shadow_casting_setting" type= "int" enum= "VisualServer.ShadowCastingSetting" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Sets the shadow casting setting to one of [enum ShadowCastingSetting]. Equivalent to [member GeometryInstance.cast_shadow].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instance_geometry_set_draw_range" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "instance" type= "RID" />
<argument index= "1" name= "min" type= "float" />
<argument index= "2" name= "max" type= "float" />
<argument index= "3" name= "min_margin" type= "float" />
<argument index= "4" name= "max_margin" type= "float" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Not implemented in Godot 3.x.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instance_geometry_set_flag" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "instance" type= "RID" />
<argument index= "1" name= "flag" type= "int" enum= "VisualServer.InstanceFlags" />
<argument index= "2" name= "enabled" type= "bool" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Sets the flag for a given [enum InstanceFlags]. See [enum InstanceFlags] for more details.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-07-24 22:45:51 +02:00
<method name= "instance_geometry_set_material_overlay" >
<return type= "void" />
<argument index= "0" name= "instance" type= "RID" />
<argument index= "1" name= "material" type= "RID" />
<description >
Sets a material that will be rendered for all surfaces on top of active materials for the mesh associated with this instance. Equivalent to [member GeometryInstance.material_overlay].
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "instance_geometry_set_material_override" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "instance" type= "RID" />
<argument index= "1" name= "material" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Sets a material that will override the material for all surfaces on the mesh associated with this instance. Equivalent to [member GeometryInstance.material_override].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instance_set_base" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "instance" type= "RID" />
<argument index= "1" name= "base" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Sets the base of the instance. A base can be any of the 3D objects that are created in the VisualServer that can be displayed. For example, any of the light types, mesh, multimesh, immediate geometry, particle system, reflection probe, lightmap capture, 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.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instance_set_blend_shape_weight" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "instance" type= "RID" />
<argument index= "1" name= "shape" type= "int" />
<argument index= "2" name= "weight" type= "float" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Sets the weight for a given blend shape associated with this instance.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instance_set_custom_aabb" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "instance" type= "RID" />
<argument index= "1" name= "aabb" type= "AABB" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Sets a custom AABB to use when culling objects from the view frustum. Equivalent to [method GeometryInstance.set_custom_aabb].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instance_set_exterior" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "instance" type= "RID" />
<argument index= "1" name= "enabled" type= "bool" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Function not implemented in Godot 3.x.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instance_set_extra_visibility_margin" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "instance" type= "RID" />
<argument index= "1" name= "margin" type= "float" />
2018-02-19 10:47:16 +01:00
<description >
2021-03-18 12:04:28 +01:00
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 GeometryInstance.extra_cull_margin].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instance_set_layer_mask" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "instance" type= "RID" />
<argument index= "1" name= "mask" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Sets the render layers that this instance will be drawn to. Equivalent to [member VisualInstance.layers].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instance_set_scenario" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "instance" type= "RID" />
<argument index= "1" name= "scenario" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Sets the scenario that the instance is in. The scenario is the 3D world that the objects will be displayed in.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instance_set_surface_material" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "instance" type= "RID" />
<argument index= "1" name= "surface" type= "int" />
<argument index= "2" name= "material" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Sets the material of a specific surface. Equivalent to [method MeshInstance.set_surface_material].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instance_set_transform" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "instance" type= "RID" />
<argument index= "1" name= "transform" type= "Transform" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Sets the world space transform of the instance. Equivalent to [member Spatial.transform].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instance_set_use_lightmap" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "instance" type= "RID" />
<argument index= "1" name= "lightmap_instance" type= "RID" />
<argument index= "2" name= "lightmap" type= "RID" />
<argument index= "3" name= "lightmap_slice" type= "int" default= "-1" />
<argument index= "4" name= "lightmap_uv_rect" type= "Rect2" default= "Rect2( 0, 0, 1, 1 )" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-12 14:30:21 +01:00
Sets the lightmap to use with this instance.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instance_set_visible" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "instance" type= "RID" />
<argument index= "1" name= "visible" type= "bool" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Sets whether an instance is drawn or not. Equivalent to [member Spatial.visible].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instances_cull_aabb" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Array" />
<argument index= "0" name= "aabb" type= "AABB" />
<argument index= "1" name= "scenario" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Returns an array of object IDs intersecting with the provided AABB. Only visual 3D nodes are considered, such as [MeshInstance] or [DirectionalLight]. Use [method @GDScript.instance_from_id] to obtain the actual nodes. A scenario RID must be provided, which is available in the [World] you want to query. This forces an update for all resources queued to update.
2020-01-04 08:24:40 +01:00
[b]Warning:[/b] This function is primarily intended for editor usage. For in-game use cases, prefer physics collision.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instances_cull_convex" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Array" />
<argument index= "0" name= "convex" type= "Array" />
<argument index= "1" name= "scenario" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Returns an array of object IDs intersecting with the provided convex shape. Only visual 3D nodes are considered, such as [MeshInstance] or [DirectionalLight]. Use [method @GDScript.instance_from_id] to obtain the actual nodes. A scenario RID must be provided, which is available in the [World] you want to query. This forces an update for all resources queued to update.
2020-01-04 08:24:40 +01:00
[b]Warning:[/b] This function is primarily intended for editor usage. For in-game use cases, prefer physics collision.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "instances_cull_ray" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Array" />
<argument index= "0" name= "from" type= "Vector3" />
<argument index= "1" name= "to" type= "Vector3" />
<argument index= "2" name= "scenario" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Returns an array of object IDs intersecting with the provided 3D ray. Only visual 3D nodes are considered, such as [MeshInstance] or [DirectionalLight]. Use [method @GDScript.instance_from_id] to obtain the actual nodes. A scenario RID must be provided, which is available in the [World] you want to query. This forces an update for all resources queued to update.
2019-06-22 01:04:47 +02:00
[b]Warning:[/b] This function is primarily intended for editor usage. For in-game use cases, prefer physics collision.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "light_directional_set_blend_splits" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "enable" type= "bool" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
If [code]true[/code], this directional light will blend between shadow map splits resulting in a smoother transition between them. Equivalent to [member DirectionalLight.directional_shadow_blend_splits].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "light_directional_set_shadow_depth_range_mode" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "range_mode" type= "int" enum= "VisualServer.LightDirectionalShadowDepthRangeMode" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the shadow depth range mode for this directional light. Equivalent to [member DirectionalLight.directional_shadow_depth_range]. See [enum LightDirectionalShadowDepthRangeMode] for options.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "light_directional_set_shadow_mode" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "mode" type= "int" enum= "VisualServer.LightDirectionalShadowMode" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the shadow mode for this directional light. Equivalent to [member DirectionalLight.directional_shadow_mode]. See [enum LightDirectionalShadowMode] for options.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "light_omni_set_shadow_detail" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "detail" type= "int" enum= "VisualServer.LightOmniShadowDetail" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets whether to use vertical or horizontal detail for this omni light. This can be used to alleviate artifacts in the shadow map. Equivalent to [member OmniLight.omni_shadow_detail].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "light_omni_set_shadow_mode" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "mode" type= "int" enum= "VisualServer.LightOmniShadowMode" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
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 OmniLight.omni_shadow_mode].
2018-02-19 10:47:16 +01:00
</description>
</method>
2020-08-30 20:16:24 +02:00
<method name= "light_set_bake_mode" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "bake_mode" type= "int" enum= "VisualServer.LightBakeMode" />
2020-08-30 20:16:24 +02:00
<description >
Sets the bake mode for this light, see [enum LightBakeMode] for options. The bake mode affects how the light will be baked in [BakedLightmap]s and [GIProbe]s.
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "light_set_color" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "color" type= "Color" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the color of the light. Equivalent to [member Light.light_color].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "light_set_cull_mask" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "mask" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the cull mask for this Light. Lights only affect objects in the selected layers. Equivalent to [member Light.light_cull_mask].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "light_set_negative" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "enable" type= "bool" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
If [code]true[/code], light will subtract light instead of adding light. Equivalent to [member Light.light_negative].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "light_set_param" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "param" type= "int" enum= "VisualServer.LightParam" />
<argument index= "2" name= "value" type= "float" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the specified light parameter. See [enum LightParam] for options. Equivalent to [method Light.set_param].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "light_set_projector" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "texture" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Not implemented in Godot 3.x.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "light_set_reverse_cull_face_mode" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "enabled" type= "bool" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
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 Light.shadow_reverse_cull_face].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "light_set_shadow" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "enabled" type= "bool" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
If [code]true[/code], light will cast shadows. Equivalent to [member Light.shadow_enabled].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "light_set_shadow_color" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "color" type= "Color" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the color of the shadow cast by the light. Equivalent to [member Light.shadow_color].
2018-02-19 10:47:16 +01:00
</description>
</method>
2019-05-15 12:51:58 +02:00
<method name= "light_set_use_gi" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "light" type= "RID" />
<argument index= "1" name= "enabled" type= "bool" />
2019-05-15 12:51:58 +02:00
<description >
2020-08-30 20:16:24 +02:00
Sets whether GI probes capture light information from this light. [i]Deprecated method.[/i] Use [method light_set_bake_mode] instead. This method is only kept for compatibility reasons and calls [method light_set_bake_mode] internally, setting the bake mode to [constant LIGHT_BAKE_DISABLED] or [constant LIGHT_BAKE_INDIRECT] depending on the given parameter.
2019-05-15 12:51:58 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "lightmap_capture_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Creates a lightmap capture and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]lightmap_capture_*[/code] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer's [method free_rid] static method.
To place in a scene, attach this lightmap capture to an instance using [method instance_set_base] using the returned RID.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "lightmap_capture_get_bounds" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "AABB" />
<argument index= "0" name= "capture" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-06 00:36:50 +01:00
Returns the size of the lightmap capture area.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "lightmap_capture_get_energy" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "float" />
<argument index= "0" name= "capture" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-06 00:36:50 +01:00
Returns the energy multiplier used by the lightmap capture.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "lightmap_capture_get_octree" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "PoolByteArray" />
<argument index= "0" name= "capture" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-06 00:36:50 +01:00
Returns the octree used by the lightmap capture.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "lightmap_capture_get_octree_cell_subdiv" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
<argument index= "0" name= "capture" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-06 00:36:50 +01:00
Returns the cell subdivision amount used by this lightmap capture's octree.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "lightmap_capture_get_octree_cell_transform" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Transform" />
<argument index= "0" name= "capture" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-06 00:36:50 +01:00
Returns the cell transform for this lightmap capture's octree.
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-03-11 13:34:57 +01:00
<method name= "lightmap_capture_is_interior" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "bool" />
<argument index= "0" name= "capture" type= "RID" />
2021-03-11 13:34:57 +01:00
<description >
Returns [code]true[/code] if capture is in "interior" mode.
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "lightmap_capture_set_bounds" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "capture" type= "RID" />
<argument index= "1" name= "bounds" type= "AABB" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-06 00:36:50 +01:00
Sets the size of the area covered by the lightmap capture. Equivalent to [member BakedLightmapData.bounds].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "lightmap_capture_set_energy" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "capture" type= "RID" />
<argument index= "1" name= "energy" type= "float" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-06 00:36:50 +01:00
Sets the energy multiplier for this lightmap capture. Equivalent to [member BakedLightmapData.energy].
2018-02-19 10:47:16 +01:00
</description>
</method>
2021-03-11 13:34:57 +01:00
<method name= "lightmap_capture_set_interior" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "capture" type= "RID" />
<argument index= "1" name= "interior" type= "bool" />
2021-03-11 13:34:57 +01:00
<description >
Sets the "interior" mode for this lightmap capture. Equivalent to [member BakedLightmapData.interior].
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "lightmap_capture_set_octree" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "capture" type= "RID" />
<argument index= "1" name= "octree" type= "PoolByteArray" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-06 00:36:50 +01:00
Sets the octree to be used by this lightmap capture. This function is normally used by the [BakedLightmap] node. Equivalent to [member BakedLightmapData.octree].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "lightmap_capture_set_octree_cell_subdiv" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "capture" type= "RID" />
<argument index= "1" name= "subdiv" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-06 00:36:50 +01:00
Sets the subdivision level of this lightmap capture's octree. Equivalent to [member BakedLightmapData.cell_subdiv].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "lightmap_capture_set_octree_cell_transform" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "capture" type= "RID" />
<argument index= "1" name= "xform" type= "Transform" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-06 00:36:50 +01:00
Sets the octree cell transform for this lightmap capture's octree. Equivalent to [member BakedLightmapData.cell_space_transform].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "make_sphere_mesh" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
<argument index= "0" name= "latitudes" type= "int" />
<argument index= "1" name= "longitudes" type= "int" />
<argument index= "2" name= "radius" type= "float" />
2018-02-19 10:47:16 +01:00
<description >
Returns a mesh of a sphere with the given amount of horizontal and vertical subdivisions.
</description>
</method>
<method name= "material_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Creates an empty material and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]material_*[/code] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer's [method free_rid] static method.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "material_get_param" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Variant" />
<argument index= "0" name= "material" type= "RID" />
<argument index= "1" name= "parameter" type= "String" />
2018-02-19 10:47:16 +01:00
<description >
Returns the value of a certain material's parameter.
</description>
</method>
2018-09-15 03:13:47 +02:00
<method name= "material_get_param_default" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Variant" />
<argument index= "0" name= "material" type= "RID" />
<argument index= "1" name= "parameter" type= "String" />
2018-09-15 03:13:47 +02:00
<description >
2022-05-29 20:20:08 +02:00
Returns the default value for the param if available. Returns [code]null[/code] otherwise.
2018-09-15 03:13:47 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "material_get_shader" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
<argument index= "0" name= "shader_material" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
Returns the shader of a certain material's shader. Returns an empty RID if the material doesn't have a shader.
</description>
</method>
<method name= "material_set_line_width" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "material" type= "RID" />
<argument index= "1" name= "width" type= "float" />
2018-02-19 10:47:16 +01:00
<description >
2019-06-22 01:04:47 +02:00
Sets a material's line width.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "material_set_next_pass" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "material" type= "RID" />
<argument index= "1" name= "next_material" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2019-06-22 01:04:47 +02:00
Sets an object's next material.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "material_set_param" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "material" type= "RID" />
<argument index= "1" name= "parameter" type= "String" />
<argument index= "2" name= "value" type= "Variant" />
2018-02-19 10:47:16 +01:00
<description >
2019-06-22 01:04:47 +02:00
Sets a material's parameter.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "material_set_render_priority" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "material" type= "RID" />
<argument index= "1" name= "priority" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
Sets a material's render priority.
</description>
</method>
<method name= "material_set_shader" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "shader_material" type= "RID" />
<argument index= "1" name= "shader" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
Sets a shader material's shader.
</description>
</method>
<method name= "mesh_add_surface_from_arrays" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "mesh" type= "RID" />
<argument index= "1" name= "primitive" type= "int" enum= "VisualServer.PrimitiveType" />
<argument index= "2" name= "arrays" type= "Array" />
<argument index= "3" name= "blend_shapes" type= "Array" default= "[ ]" />
<argument index= "4" name= "compress_format" type= "int" default= "2194432" />
2018-02-19 10:47:16 +01:00
<description >
2019-12-06 23:09:20 +01:00
Adds a surface generated from the Arrays to a mesh. See [enum PrimitiveType] constants for types.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "mesh_clear" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "mesh" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
Removes all surfaces from a mesh.
</description>
</method>
<method name= "mesh_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Creates a new mesh and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]mesh_*[/code] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer'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.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "mesh_get_blend_shape_count" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
<argument index= "0" name= "mesh" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
Returns a mesh's blend shape count.
</description>
</method>
<method name= "mesh_get_blend_shape_mode" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" enum= "VisualServer.BlendShapeMode" />
<argument index= "0" name= "mesh" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
Returns a mesh's blend shape mode.
</description>
</method>
<method name= "mesh_get_custom_aabb" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "AABB" />
<argument index= "0" name= "mesh" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
Returns a mesh's custom aabb.
</description>
</method>
<method name= "mesh_get_surface_count" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
<argument index= "0" name= "mesh" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
Returns a mesh's number of surfaces.
</description>
</method>
<method name= "mesh_remove_surface" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "mesh" type= "RID" />
<argument index= "1" name= "index" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
Removes a mesh's surface.
</description>
</method>
<method name= "mesh_set_blend_shape_count" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "mesh" type= "RID" />
<argument index= "1" name= "amount" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
Sets a mesh's blend shape count.
</description>
</method>
<method name= "mesh_set_blend_shape_mode" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "mesh" type= "RID" />
<argument index= "1" name= "mode" type= "int" enum= "VisualServer.BlendShapeMode" />
2018-02-19 10:47:16 +01:00
<description >
Sets a mesh's blend shape mode.
</description>
</method>
<method name= "mesh_set_custom_aabb" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "mesh" type= "RID" />
<argument index= "1" name= "aabb" type= "AABB" />
2018-02-19 10:47:16 +01:00
<description >
Sets a mesh's custom aabb.
</description>
</method>
<method name= "mesh_surface_get_aabb" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "AABB" />
<argument index= "0" name= "mesh" type= "RID" />
<argument index= "1" name= "surface" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
Returns a mesh's surface's aabb.
</description>
</method>
<method name= "mesh_surface_get_array" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "PoolByteArray" />
<argument index= "0" name= "mesh" type= "RID" />
<argument index= "1" name= "surface" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
Returns a mesh's surface's vertex buffer.
</description>
</method>
<method name= "mesh_surface_get_array_index_len" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
<argument index= "0" name= "mesh" type= "RID" />
<argument index= "1" name= "surface" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
Returns a mesh's surface's amount of indices.
</description>
</method>
<method name= "mesh_surface_get_array_len" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
<argument index= "0" name= "mesh" type= "RID" />
<argument index= "1" name= "surface" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
Returns a mesh's surface's amount of vertices.
</description>
</method>
<method name= "mesh_surface_get_arrays" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Array" />
<argument index= "0" name= "mesh" type= "RID" />
<argument index= "1" name= "surface" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
Returns a mesh's surface's buffer arrays.
</description>
</method>
<method name= "mesh_surface_get_blend_shape_arrays" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Array" />
<argument index= "0" name= "mesh" type= "RID" />
<argument index= "1" name= "surface" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
2019-06-22 01:04:47 +02:00
Returns a mesh's surface's arrays for blend shapes.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "mesh_surface_get_format" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
<argument index= "0" name= "mesh" type= "RID" />
<argument index= "1" name= "surface" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
Returns the format of a mesh's surface.
</description>
</method>
2018-07-26 11:56:21 +02:00
<method name= "mesh_surface_get_format_offset" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
<argument index= "0" name= "format" type= "int" />
<argument index= "1" name= "vertex_len" type= "int" />
<argument index= "2" name= "index_len" type= "int" />
<argument index= "3" name= "array_index" type= "int" />
2018-07-26 11:56:21 +02:00
<description >
2020-01-05 09:33:16 +01:00
Function is unused in Godot 3.x.
2018-07-26 11:56:21 +02:00
</description>
</method>
<method name= "mesh_surface_get_format_stride" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
<argument index= "0" name= "format" type= "int" />
<argument index= "1" name= "vertex_len" type= "int" />
<argument index= "2" name= "index_len" type= "int" />
2021-08-17 02:41:43 +02:00
<argument index= "3" name= "array_index" type= "int" />
2018-07-26 11:56:21 +02:00
<description >
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "mesh_surface_get_index_array" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "PoolByteArray" />
<argument index= "0" name= "mesh" type= "RID" />
<argument index= "1" name= "surface" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
Returns a mesh's surface's index buffer.
</description>
</method>
<method name= "mesh_surface_get_material" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
<argument index= "0" name= "mesh" type= "RID" />
<argument index= "1" name= "surface" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
Returns a mesh's surface's material.
</description>
</method>
<method name= "mesh_surface_get_primitive_type" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" enum= "VisualServer.PrimitiveType" />
<argument index= "0" name= "mesh" type= "RID" />
<argument index= "1" name= "surface" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
Returns the primitive type of a mesh's surface.
</description>
</method>
<method name= "mesh_surface_get_skeleton_aabb" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Array" />
<argument index= "0" name= "mesh" type= "RID" />
<argument index= "1" name= "surface" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
Returns the aabb of a mesh's surface's skeleton.
</description>
</method>
<method name= "mesh_surface_set_material" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "mesh" type= "RID" />
<argument index= "1" name= "surface" type= "int" />
<argument index= "2" name= "material" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
Sets a mesh's surface's material.
</description>
</method>
2018-07-26 11:56:21 +02:00
<method name= "mesh_surface_update_region" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "mesh" type= "RID" />
<argument index= "1" name= "surface" type= "int" />
<argument index= "2" name= "offset" type= "int" />
<argument index= "3" name= "data" type= "PoolByteArray" />
2018-07-26 11:56:21 +02:00
<description >
2020-01-05 09:33:16 +01:00
Updates a specific region of a vertex buffer for the specified surface. Warning: this function alters the vertex buffer directly with no safety mechanisms, you can easily corrupt your mesh.
2018-07-26 11:56:21 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "multimesh_allocate" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "multimesh" type= "RID" />
<argument index= "1" name= "instances" type= "int" />
<argument index= "2" name= "transform_format" type= "int" enum= "VisualServer.MultimeshTransformFormat" />
<argument index= "3" name= "color_format" type= "int" enum= "VisualServer.MultimeshColorFormat" />
<argument index= "4" name= "custom_data_format" type= "int" enum= "VisualServer.MultimeshCustomDataFormat" default= "0" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Allocates space for the multimesh data. Format parameters determine how the data will be stored by OpenGL. See [enum MultimeshTransformFormat], [enum MultimeshColorFormat], and [enum MultimeshCustomDataFormat] for usage. Equivalent to [member MultiMesh.instance_count].
2018-02-19 10:47:16 +01:00
</description>
</method>
2019-12-01 06:47:16 +01:00
<method name= "multimesh_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2019-12-01 06:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Creates a new multimesh on the VisualServer and returns an [RID] handle. This RID will be used in all [code]multimesh_*[/code] VisualServer functions.
2019-12-01 06:47:16 +01:00
Once finished with your RID, you will want to free the RID using the VisualServer's [method free_rid] static method.
2020-01-04 08:24:40 +01:00
To place in a scene, attach this multimesh to an instance using [method instance_set_base] using the returned RID.
2019-12-01 06:47:16 +01:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "multimesh_get_aabb" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "AABB" />
<argument index= "0" name= "multimesh" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Calculates and returns the axis-aligned bounding box that encloses all instances within the multimesh.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "multimesh_get_instance_count" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
<argument index= "0" name= "multimesh" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Returns the number of instances allocated for this multimesh.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "multimesh_get_mesh" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
<argument index= "0" name= "multimesh" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Returns the RID of the mesh that will be used in drawing this multimesh.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "multimesh_get_visible_instances" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
<argument index= "0" name= "multimesh" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Returns the number of visible instances for this multimesh.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "multimesh_instance_get_color" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Color" />
<argument index= "0" name= "multimesh" type= "RID" />
<argument index= "1" name= "index" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Returns the color by which the specified instance will be modulated.
2018-02-19 10:47:16 +01:00
</description>
</method>
2018-07-26 11:56:21 +02:00
<method name= "multimesh_instance_get_custom_data" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Color" />
<argument index= "0" name= "multimesh" type= "RID" />
<argument index= "1" name= "index" type= "int" />
2018-07-26 11:56:21 +02:00
<description >
2020-01-05 09:33:16 +01:00
Returns the custom data associated with the specified instance.
2018-07-26 11:56:21 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "multimesh_instance_get_transform" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Transform" />
<argument index= "0" name= "multimesh" type= "RID" />
<argument index= "1" name= "index" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Returns the [Transform] of the specified instance.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "multimesh_instance_get_transform_2d" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Transform2D" />
<argument index= "0" name= "multimesh" type= "RID" />
<argument index= "1" name= "index" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01: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>
<method name= "multimesh_instance_set_color" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "multimesh" type= "RID" />
<argument index= "1" name= "index" type= "int" />
<argument index= "2" name= "color" type= "Color" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01: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>
2018-07-26 11:56:21 +02:00
<method name= "multimesh_instance_set_custom_data" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "multimesh" type= "RID" />
<argument index= "1" name= "index" type= "int" />
<argument index= "2" name= "custom_data" type= "Color" />
2018-07-26 11:56:21 +02:00
<description >
2020-01-05 09:33:16 +01: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-07-26 11:56:21 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "multimesh_instance_set_transform" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "multimesh" type= "RID" />
<argument index= "1" name= "index" type= "int" />
<argument index= "2" name= "transform" type= "Transform" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the [Transform] for this instance. Equivalent to [method MultiMesh.set_instance_transform].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "multimesh_instance_set_transform_2d" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "multimesh" type= "RID" />
<argument index= "1" name= "index" type= "int" />
<argument index= "2" name= "transform" type= "Transform2D" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01: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>
2018-07-26 11:56:21 +02:00
<method name= "multimesh_set_as_bulk_array" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "multimesh" type= "RID" />
<argument index= "1" name= "array" type= "PoolRealArray" />
2018-07-26 11:56:21 +02:00
<description >
2020-01-05 09:33:16 +01:00
Sets all data related to the instances in one go. This is especially useful when loading the data from disk or preparing the data from GDNative.
All data is packed in one large float array. An array may look like this: Transform for instance 1, color data for instance 1, custom data for instance 1, transform for instance 2, color data for instance 2, etc.
[Transform] is stored as 12 floats, [Transform2D] is stored as 8 floats, [code]COLOR_8BIT[/code] / [code]CUSTOM_DATA_8BIT[/code] is stored as 1 float (4 bytes as is) and [code]COLOR_FLOAT[/code] / [code]CUSTOM_DATA_FLOAT[/code] is stored as 4 floats.
2018-07-26 11:56:21 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "multimesh_set_mesh" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "multimesh" type= "RID" />
<argument index= "1" name= "mesh" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01: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>
<method name= "multimesh_set_visible_instances" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "multimesh" type= "RID" />
<argument index= "1" name= "visible" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01: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>
<method name= "omni_light_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Creates a new omni light and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID can be used in most [code]light_*[/code] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer'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>
<method name= "particles_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Creates a particle system and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]particles_*[/code] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer'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>
<method name= "particles_get_current_aabb" >
2021-07-30 15:28:05 +02:00
<return type= "AABB" />
<argument index= "0" name= "particles" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Calculates and returns the axis-aligned bounding box that contains all the particles. Equivalent to [method Particles.capture_aabb].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "particles_get_emitting" >
2021-07-30 15:28:05 +02:00
<return type= "bool" />
<argument index= "0" name= "particles" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Returns [code]true[/code] if particles are currently set to emitting.
2018-02-19 10:47:16 +01:00
</description>
2019-11-11 17:25:05 +01:00
</method>
<method name= "particles_is_inactive" >
2021-07-30 15:28:05 +02:00
<return type= "bool" />
<argument index= "0" name= "particles" type= "RID" />
2019-11-11 17:25:05 +01:00
<description >
2020-01-05 09:33:16 +01:00
Returns [code]true[/code] if particles are not emitting and particles are set to inactive.
2019-11-11 17:25:05 +01:00
</description>
</method>
<method name= "particles_request_process" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "particles" type= "RID" />
2019-11-11 17:25:05 +01:00
<description >
2020-01-05 09:33:16 +01: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].
2019-11-11 17:25:05 +01:00
</description>
2018-02-19 10:47:16 +01:00
</method>
<method name= "particles_restart" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "particles" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-23 11:14:14 +01:00
Reset the particles on the next update. Equivalent to [method Particles.restart].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "particles_set_amount" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "particles" type= "RID" />
<argument index= "1" name= "amount" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the number of particles to be drawn and allocates the memory for them. Equivalent to [member Particles.amount].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "particles_set_custom_aabb" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "particles" type= "RID" />
<argument index= "1" name= "aabb" type= "AABB" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets a custom axis-aligned bounding box for the particle system. Equivalent to [member Particles.visibility_aabb].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "particles_set_draw_order" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "particles" type= "RID" />
<argument index= "1" name= "order" type= "int" enum= "VisualServer.ParticlesDrawOrder" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01: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 Particles.draw_order].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "particles_set_draw_pass_mesh" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "particles" type= "RID" />
<argument index= "1" name= "pass" type= "int" />
<argument index= "2" name= "mesh" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the mesh to be used for the specified draw pass. Equivalent to [member Particles.draw_pass_1], [member Particles.draw_pass_2], [member Particles.draw_pass_3], and [member Particles.draw_pass_4].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "particles_set_draw_passes" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "particles" type= "RID" />
<argument index= "1" name= "count" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the number of draw passes to use. Equivalent to [member Particles.draw_passes].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "particles_set_emission_transform" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "particles" type= "RID" />
<argument index= "1" name= "transform" type= "Transform" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the [Transform] that will be used by the particles when they first emit.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "particles_set_emitting" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "particles" type= "RID" />
<argument index= "1" name= "emitting" type= "bool" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01: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 Particles.emitting].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "particles_set_explosiveness_ratio" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "particles" type= "RID" />
<argument index= "1" name= "ratio" type= "float" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the explosiveness ratio. Equivalent to [member Particles.explosiveness].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "particles_set_fixed_fps" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "particles" type= "RID" />
<argument index= "1" name= "fps" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
Sets the frame rate that the particle system rendering will be fixed to. Equivalent to [member Particles.fixed_fps].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "particles_set_fractional_delta" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "particles" type= "RID" />
<argument index= "1" name= "enable" type= "bool" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-05 09:33:16 +01:00
If [code]true[/code], uses fractional delta which smooths the movement of the particles. Equivalent to [member Particles.fract_delta].
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "particles_set_lifetime" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "particles" type= "RID" />
<argument index= "1" name= "lifetime" type= "float" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-05 09:33:16 +01:00
Sets the lifetime of each particle in the system. Equivalent to [member Particles.lifetime].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "particles_set_one_shot" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "particles" type= "RID" />
<argument index= "1" name= "one_shot" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-05 09:33:16 +01:00
If [code]true[/code], particles will emit once and then stop. Equivalent to [member Particles.one_shot].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "particles_set_pre_process_time" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "particles" type= "RID" />
<argument index= "1" name= "time" type= "float" />
2017-10-21 12:02:08 +02:00
<description >
2021-03-18 12:04:28 +01: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 Particles.preprocess].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "particles_set_process_material" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "particles" type= "RID" />
<argument index= "1" name= "material" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2021-10-05 14:24:34 +02:00
Sets the material for processing the particles.
[b]Note:[/b] This is not the material used to draw the materials. Equivalent to [member Particles.process_material].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "particles_set_randomness_ratio" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "particles" type= "RID" />
<argument index= "1" name= "ratio" type= "float" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-05 09:33:16 +01:00
Sets the emission randomness ratio. This randomizes the emission of particles within their phase. Equivalent to [member Particles.randomness].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "particles_set_speed_scale" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "particles" type= "RID" />
<argument index= "1" name= "scale" type= "float" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-05 09:33:16 +01:00
Sets the speed scale of the particle system. Equivalent to [member Particles.speed_scale].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "particles_set_use_local_coordinates" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "particles" type= "RID" />
<argument index= "1" name= "enable" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-05 09:33:16 +01:00
If [code]true[/code], particles use local coordinates. If [code]false[/code] they use global coordinates. Equivalent to [member Particles.local_coords].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "reflection_probe_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-04 08:24:40 +01:00
Creates a reflection probe and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]reflection_probe_*[/code] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer's [method free_rid] static method.
To place in a scene, attach this reflection probe to an instance using [method instance_set_base] using the returned RID.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "reflection_probe_set_as_interior" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "enable" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-06 00:36:50 +01:00
If [code]true[/code], reflections will ignore sky contribution. Equivalent to [member ReflectionProbe.interior_enable].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "reflection_probe_set_cull_mask" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "layers" type= "int" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-06 00:36:50 +01: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].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "reflection_probe_set_enable_box_projection" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "enable" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-06 00:36:50 +01:00
If [code]true[/code], uses box projection. This can make reflections look more correct in certain situations. Equivalent to [member ReflectionProbe.box_projection].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "reflection_probe_set_enable_shadows" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "enable" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-06 00:36:50 +01: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].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "reflection_probe_set_extents" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "extents" type= "Vector3" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-06 00:36:50 +01:00
Sets the size of the area that the reflection probe will capture. Equivalent to [member ReflectionProbe.extents].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "reflection_probe_set_intensity" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "intensity" type= "float" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-06 00:36:50 +01:00
Sets the intensity of the reflection probe. Intensity modulates the strength of the reflection. Equivalent to [member ReflectionProbe.intensity].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "reflection_probe_set_interior_ambient" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "color" type= "Color" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-06 00:36:50 +01:00
Sets the ambient light color for this reflection probe when set to interior mode. Equivalent to [member ReflectionProbe.interior_ambient_color].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "reflection_probe_set_interior_ambient_energy" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "energy" type= "float" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-06 00:36:50 +01:00
Sets the energy multiplier for this reflection probes ambient light contribution when set to interior mode. Equivalent to [member ReflectionProbe.interior_ambient_energy].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "reflection_probe_set_interior_ambient_probe_contribution" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "contrib" type= "float" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-06 00:36:50 +01:00
Sets the contribution value for how much the reflection affects the ambient light for this reflection probe when set to interior mode. Useful so that ambient light matches the color of the room. Equivalent to [member ReflectionProbe.interior_ambient_contrib].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "reflection_probe_set_max_distance" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "distance" type= "float" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-06 00:36:50 +01:00
Sets the max distance away from the probe an object can be before it is culled. Equivalent to [member ReflectionProbe.max_distance].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "reflection_probe_set_origin_offset" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "offset" type= "Vector3" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-06 00:36:50 +01:00
Sets the origin offset to be used when this reflection probe is in box project mode. Equivalent to [member ReflectionProbe.origin_offset].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "reflection_probe_set_update_mode" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "probe" type= "RID" />
<argument index= "1" name= "mode" type= "int" enum= "VisualServer.ReflectionProbeUpdateMode" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-06 00:36:50 +01:00
Sets how often the reflection probe updates. Can either be once or every frame. See [enum ReflectionProbeUpdateMode] for options.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "request_frame_drawn_callback" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "where" type= "Object" />
<argument index= "1" name= "method" type= "String" />
<argument index= "2" name= "userdata" type= "Variant" />
2017-10-21 12:02:08 +02:00
<description >
2019-06-22 01:04: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].
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "scenario_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-04 08:24:40 +01:00
Creates a scenario and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]scenario_*[/code] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer's [method free_rid] static method.
2020-01-12 14:30:21 +01:00
The scenario is the 3D world that all the visual instances exist in.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "scenario_set_debug" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "scenario" type= "RID" />
<argument index= "1" name= "debug_mode" type= "int" enum= "VisualServer.ScenarioDebugMode" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-05 09:33:16 +01:00
Sets the [enum ScenarioDebugMode] for this scenario. See [enum ScenarioDebugMode] for options.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "scenario_set_environment" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "scenario" type= "RID" />
<argument index= "1" name= "environment" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-05 09:33:16 +01:00
Sets the environment that will be used with this scenario.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "scenario_set_fallback_environment" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "scenario" type= "RID" />
<argument index= "1" name= "environment" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-05 09:33:16 +01: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.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "scenario_set_reflection_atlas_size" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "scenario" type= "RID" />
<argument index= "1" name= "size" type= "int" />
<argument index= "2" name= "subdiv" type= "int" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-05 09:33:16 +01:00
Sets the size of the reflection atlas shared by all reflection probes in this scenario.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "set_boot_image" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "image" type= "Image" />
<argument index= "1" name= "color" type= "Color" />
<argument index= "2" name= "scale" type= "bool" />
<argument index= "3" name= "use_filter" type= "bool" default= "true" />
2017-10-21 12:02:08 +02:00
<description >
2019-06-13 22:37:19 +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.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "set_debug_generate_wireframes" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "generate" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-05 09:33:16 +01:00
If [code]true[/code], the engine will generate wireframes for use with the wireframe debug mode.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "set_default_clear_color" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "color" type= "Color" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-05 09:33:16 +01:00
Sets the default clear color which is used when a specific clear color has not been selected.
2017-10-21 12:02:08 +02:00
</description>
</method>
2021-09-26 21:31:17 +02:00
<method name= "set_shader_async_hidden_forbidden" >
<return type= "void" />
<argument index= "0" name= "forbidden" type= "bool" />
<description >
If asynchronous shader compilation is enabled, this controls whether [constant SpatialMaterial.ASYNC_MODE_HIDDEN] is obeyed.
For instance, you may want to enable this temporarily before taking a screenshot. This ensures everything is visible even if shaders with async mode [i]hidden[/i] are not ready yet.
Reflection probes use this internally to ensure they capture everything regardless the shaders are ready or not.
</description>
</method>
2020-06-06 18:47:03 +02:00
<method name= "set_shader_time_scale" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "scale" type= "float" />
2020-06-06 18:47:03 +02:00
<description >
Sets the scale to apply to the passage of time for the shaders' [code]TIME[/code] builtin.
The default value is [code]1.0[/code], which means [code]TIME[/code] will count the real time as it goes by, without narrowing or stretching it.
</description>
</method>
2021-08-05 16:44:43 +02:00
<method name= "set_use_occlusion_culling" >
<return type= "void" />
<argument index= "0" name= "enable" type= "bool" />
<description >
Enables or disables occlusion culling.
</description>
</method>
2017-10-21 12:02:08 +02:00
<method name= "shader_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-04 08:24:40 +01:00
Creates an empty shader and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]shader_*[/code] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer's [method free_rid] static method.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "shader_get_code" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "String" />
<argument index= "0" name= "shader" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Returns a shader's code.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "shader_get_default_texture_param" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
<argument index= "0" name= "shader" type= "RID" />
<argument index= "1" name= "name" type= "String" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Returns a default texture from a shader searched by name.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "shader_get_param_list" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Array" />
<argument index= "0" name= "shader" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Returns the parameters of a shader.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "shader_set_code" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "shader" type= "RID" />
<argument index= "1" name= "code" type= "String" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets a shader's code.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "shader_set_default_texture_param" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "shader" type= "RID" />
<argument index= "1" name= "name" type= "String" />
<argument index= "2" name= "texture" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets a shader's default texture. Overwrites the texture given by name.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "skeleton_allocate" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "skeleton" type= "RID" />
<argument index= "1" name= "bones" type= "int" />
<argument index= "2" name= "is_2d_skeleton" type= "bool" default= "false" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-06 00:36:50 +01:00
Allocates the GPU buffers for this skeleton.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "skeleton_bone_get_transform" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Transform" />
<argument index= "0" name= "skeleton" type= "RID" />
<argument index= "1" name= "bone" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-06 00:36:50 +01:00
Returns the [Transform] set for a specific bone of this skeleton.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "skeleton_bone_get_transform_2d" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Transform2D" />
<argument index= "0" name= "skeleton" type= "RID" />
<argument index= "1" name= "bone" type= "int" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-06 00:36:50 +01:00
Returns the [Transform2D] set for a specific bone of this skeleton.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "skeleton_bone_set_transform" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "skeleton" type= "RID" />
<argument index= "1" name= "bone" type= "int" />
<argument index= "2" name= "transform" type= "Transform" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-06 00:36:50 +01:00
Sets the [Transform] for a specific bone of this skeleton.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "skeleton_bone_set_transform_2d" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "skeleton" type= "RID" />
<argument index= "1" name= "bone" type= "int" />
<argument index= "2" name= "transform" type= "Transform2D" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-06 00:36:50 +01:00
Sets the [Transform2D] for a specific bone of this skeleton.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "skeleton_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Creates a skeleton and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]skeleton_*[/code] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer's [method free_rid] static method.
2018-02-19 10:47:16 +01:00
</description>
</method>
<method name= "skeleton_get_bone_count" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
<argument index= "0" name= "skeleton" type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-06 00:36:50 +01:00
Returns the number of bones allocated for this skeleton.
2018-02-19 10:47:16 +01:00
</description>
</method>
2017-10-21 12:02:08 +02:00
<method name= "sky_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-04 08:24:40 +01:00
Creates an empty sky and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]sky_*[/code] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer's [method free_rid] static method.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "sky_set_texture" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "sky" type= "RID" />
<argument index= "1" name= "cube_map" type= "RID" />
<argument index= "2" name= "radiance_size" type= "int" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets a sky's texture.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-02-19 10:47:16 +01:00
<method name= "spot_light_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2018-02-19 10:47:16 +01:00
<description >
2020-01-04 08:24:40 +01:00
Creates a spot light and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID can be used in most [code]light_*[/code] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer's [method free_rid] static method.
To place in a scene, attach this spot light to an instance using [method instance_set_base] using the returned RID.
2018-02-19 10:47:16 +01:00
</description>
</method>
2017-10-21 12:02:08 +02:00
<method name= "sync" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-05 09:33:16 +01:00
Not implemented in Godot 3.x.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "texture_allocate" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "texture" type= "RID" />
<argument index= "1" name= "width" type= "int" />
<argument index= "2" name= "height" type= "int" />
<argument index= "3" name= "depth_3d" type= "int" />
<argument index= "4" name= "format" type= "int" enum= "Image.Format" />
<argument index= "5" name= "type" type= "int" enum= "VisualServer.TextureType" />
<argument index= "6" name= "flags" type= "int" default= "7" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-05 09:33:16 +01:00
Allocates the GPU memory for the texture.
2017-10-21 12:02:08 +02:00
</description>
</method>
2017-08-20 16:17:24 +02:00
<method name= "texture_bind" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "texture" type= "RID" />
<argument index= "1" name= "number" type= "int" />
2017-08-20 16:17:24 +02:00
<description >
Binds the texture to a texture slot.
</description>
</method>
2017-10-21 12:02:08 +02:00
<method name= "texture_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-04 08:24:40 +01:00
Creates an empty texture and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]texture_*[/code] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer's [method free_rid] static method.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "texture_create_from_image" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
<argument index= "0" name= "image" type= "Image" />
<argument index= "1" name= "flags" type= "int" default= "7" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Creates a texture, allocates the space for an image, and fills in the image.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "texture_debug_usage" >
2021-07-30 15:28:05 +02:00
<return type= "Array" />
2017-10-21 12:02:08 +02:00
<description >
2017-12-10 00:43:30 +01:00
Returns a list of all the textures and their information.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "texture_get_data" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "Image" />
<argument index= "0" name= "texture" type= "RID" />
<argument index= "1" name= "cube_side" type= "int" default= "0" />
2017-10-21 12:02:08 +02:00
<description >
2018-01-18 21:37:17 +01:00
Returns a copy of a texture's image unless it's a CubeMap, in which case it returns the [RID] of the image at one of the cubes sides.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-08-21 00:35:30 +02:00
<method name= "texture_get_depth" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
<argument index= "0" name= "texture" type= "RID" />
2018-08-21 00:35:30 +02:00
<description >
2020-01-05 09:33:16 +01:00
Returns the depth of the texture.
2018-08-21 00:35:30 +02:00
</description>
</method>
2017-10-21 12:02:08 +02:00
<method name= "texture_get_flags" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
<argument index= "0" name= "texture" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Returns the flags of a texture.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "texture_get_format" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" enum= "Image.Format" />
<argument index= "0" name= "texture" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Returns the format of the texture's image.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "texture_get_height" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
<argument index= "0" name= "texture" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Returns the texture's height.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "texture_get_path" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "String" />
<argument index= "0" name= "texture" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Returns the texture's path.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "texture_get_texid" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
<argument index= "0" name= "texture" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Returns the opengl id of the texture's image.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-08-21 00:35:30 +02:00
<method name= "texture_get_type" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" enum= "VisualServer.TextureType" />
<argument index= "0" name= "texture" type= "RID" />
2018-08-21 00:35:30 +02:00
<description >
2020-01-05 09:33:16 +01:00
Returns the type of the texture, can be any of the [enum TextureType].
2018-08-21 00:35:30 +02:00
</description>
</method>
2017-10-21 12:02:08 +02:00
<method name= "texture_get_width" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
<argument index= "0" name= "texture" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Returns the texture's width.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "texture_set_data" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "texture" type= "RID" />
<argument index= "1" name= "image" type= "Image" />
<argument index= "2" name= "layer" type= "int" default= "0" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets the texture's image data. If it's a CubeMap, it sets the image data at a cube side.
2017-10-21 12:02:08 +02:00
</description>
</method>
2018-05-12 09:38:00 +02:00
<method name= "texture_set_data_partial" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "texture" type= "RID" />
<argument index= "1" name= "image" type= "Image" />
<argument index= "2" name= "src_x" type= "int" />
<argument index= "3" name= "src_y" type= "int" />
<argument index= "4" name= "src_w" type= "int" />
<argument index= "5" name= "src_h" type= "int" />
<argument index= "6" name= "dst_x" type= "int" />
<argument index= "7" name= "dst_y" type= "int" />
<argument index= "8" name= "dst_mip" type= "int" />
<argument index= "9" name= "layer" type= "int" default= "0" />
2018-05-12 09:38:00 +02:00
<description >
2020-01-05 09:33:16 +01:00
Sets a part of the data for a texture. Warning: this function calls the underlying graphics API directly and may corrupt your texture if used improperly.
2018-05-12 09:38:00 +02:00
</description>
</method>
2017-10-21 12:02:08 +02:00
<method name= "texture_set_flags" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "texture" type= "RID" />
<argument index= "1" name= "flags" type= "int" />
2017-10-21 12:02:08 +02:00
<description >
2019-06-22 01:04:47 +02:00
Sets the texture's flags. See [enum TextureFlags] for options.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "texture_set_path" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "texture" type= "RID" />
<argument index= "1" name= "path" type= "String" />
2017-10-11 23:54:43 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets the texture's path.
2017-10-11 23:54:43 +02:00
</description>
</method>
2021-11-06 20:45:26 +01:00
<method name= "texture_set_proxy" >
<return type= "void" />
<argument index= "0" name= "proxy" type= "RID" />
<argument index= "1" name= "base" type= "RID" />
<description >
Creates an update link between two textures, similar to how [ViewportTexture]s operate. When the base texture is the texture of a [Viewport], every time the viewport renders a new frame, the proxy texture automatically receives an update.
For example, this code links a generic [ImageTexture] to the texture output of the [Viewport] using the VisualServer API:
[codeblock]
func _ready():
var viewport_rid = get_viewport().get_viewport_rid()
var viewport_texture_rid = VisualServer.viewport_get_texture(viewport_rid)
var proxy_texture = ImageTexture.new()
var viewport_texture_image_data = VisualServer.texture_get_data(viewport_texture_rid)
proxy_texture.create_from_image(viewport_texture_image_data)
var proxy_texture_rid = proxy_texture.get_rid()
VisualServer.texture_set_proxy(proxy_texture_rid, viewport_texture_rid)
$TextureRect.texture = proxy_texture
[/codeblock]
</description>
</method>
2017-10-21 12:02:08 +02:00
<method name= "texture_set_shrink_all_x2_on_set_data" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "shrink" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2018-12-20 13:46:54 +01:00
If [code]true[/code], sets internal processes to shrink all image data to half the size.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "texture_set_size_override" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "texture" type= "RID" />
<argument index= "1" name= "width" type= "int" />
<argument index= "2" name= "height" type= "int" />
<argument index= "3" name= "depth" type= "int" />
2017-10-14 17:32:27 +02:00
<description >
2020-01-05 09:33:16 +01:00
Resizes the texture to the specified dimensions.
2017-10-14 17:32:27 +02:00
</description>
</method>
2017-10-21 12:02:08 +02:00
<method name= "textures_keep_original" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "enable" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2018-12-20 13:46:54 +01:00
If [code]true[/code], the image will be stored in the texture's images array if overwritten.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "viewport_attach_camera" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "camera" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets a viewport's camera.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "viewport_attach_canvas" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "canvas" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets a viewport's canvas.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "viewport_attach_to_screen" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "rect" type= "Rect2" default= "Rect2( 0, 0, 0, 0 )" />
<argument index= "2" name= "screen" type= "int" default= "0" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-26 06:59:51 +01:00
Copies viewport to a region of the screen specified by [code]rect[/code]. If [member Viewport.render_direct_to_screen] is [code]true[/code], then 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.
2019-05-08 20:25:34 +02:00
For example, you can set the root viewport to not render at all with the following code:
[codeblock]
func _ready():
get_viewport().set_attach_to_screen_rect(Rect2())
$Viewport.set_attach_to_screen_rect(Rect2(0, 0, 600, 600))
[/codeblock]
2022-06-08 11:42:51 +02:00
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 further optimization, see [method viewport_set_render_direct_to_screen].
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "viewport_create" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
2017-09-12 22:42:36 +02:00
<description >
2020-01-04 08:24:40 +01:00
Creates an empty viewport and adds it to the VisualServer. It can be accessed with the RID that is returned. This RID will be used in all [code]viewport_*[/code] VisualServer functions.
Once finished with your RID, you will want to free the RID using the VisualServer's [method free_rid] static method.
2017-09-12 22:42:36 +02:00
</description>
</method>
2017-10-21 12:02:08 +02:00
<method name= "viewport_detach" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Detaches the viewport from the screen.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "viewport_get_render_info" >
2021-07-30 15:28:05 +02:00
<return type= "int" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "info" type= "int" enum= "VisualServer.ViewportRenderInfo" />
2017-10-21 12:02:08 +02:00
<description >
2019-12-06 23:09:20 +01:00
Returns a viewport's render information. For options, see the [enum ViewportRenderInfo] constants.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "viewport_get_texture" qualifiers= "const" >
2021-07-30 15:28:05 +02:00
<return type= "RID" />
<argument index= "0" name= "viewport" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Returns the viewport's last rendered frame.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "viewport_remove_canvas" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "canvas" type= "RID" />
2017-09-12 22:42:36 +02:00
<description >
2017-11-26 16:37:37 +01:00
Detaches a viewport from a canvas and vice versa.
2017-09-12 22:42:36 +02:00
</description>
</method>
2017-10-21 12:02:08 +02:00
<method name= "viewport_set_active" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "active" type= "bool" />
2017-09-12 22:42:36 +02:00
<description >
2018-12-20 13:46:54 +01:00
If [code]true[/code], sets the viewport active, else sets it inactive.
2017-09-12 22:42:36 +02:00
</description>
</method>
2018-10-30 21:53:00 +01:00
<method name= "viewport_set_canvas_stacking" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "canvas" type= "RID" />
<argument index= "2" name= "layer" type= "int" />
<argument index= "3" name= "sublayer" type= "int" />
2017-09-12 22:42:36 +02:00
<description >
2018-10-30 21:53:00 +01: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-09-12 22:42:36 +02:00
</description>
</method>
2017-10-21 12:02:08 +02:00
<method name= "viewport_set_canvas_transform" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "canvas" type= "RID" />
<argument index= "2" name= "offset" type= "Transform2D" />
2017-09-12 22:42:36 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets the transformation of a viewport's canvas.
2017-09-12 22:42:36 +02:00
</description>
</method>
2017-10-21 12:02:08 +02:00
<method name= "viewport_set_clear_mode" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "clear_mode" type= "int" enum= "VisualServer.ViewportClearMode" />
2017-09-12 22:42:36 +02:00
<description >
2019-06-27 11:44:37 +02:00
Sets the clear mode of a viewport. See [enum ViewportClearMode] for options.
2017-09-12 22:42:36 +02:00
</description>
</method>
2017-10-21 12:02:08 +02:00
<method name= "viewport_set_debug_draw" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "draw" type= "int" enum= "VisualServer.ViewportDebugDraw" />
2017-10-21 12:02:08 +02:00
<description >
2019-06-27 11:44:37 +02:00
Sets the debug draw mode of a viewport. See [enum ViewportDebugDraw] for options.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "viewport_set_disable_3d" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "disabled" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2018-12-20 13:46:54 +01:00
If [code]true[/code], a viewport's 3D rendering is disabled.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "viewport_set_disable_environment" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "disabled" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2018-12-20 13:46:54 +01:00
If [code]true[/code], rendering of a viewport's environment is disabled.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "viewport_set_global_canvas_transform" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "transform" type= "Transform2D" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets the viewport's global transformation matrix.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "viewport_set_hdr" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "enabled" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2018-12-20 13:46:54 +01:00
If [code]true[/code], the viewport renders to hdr.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "viewport_set_hide_canvas" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "hidden" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2018-12-20 13:46:54 +01:00
If [code]true[/code], the viewport's canvas is not rendered.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "viewport_set_hide_scenario" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "hidden" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2020-01-04 08:24:40 +01:00
Currently unimplemented in Godot 3.x.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "viewport_set_msaa" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "msaa" type= "int" enum= "VisualServer.ViewportMSAA" />
2017-10-21 12:02:08 +02:00
<description >
2019-06-22 01:04:47 +02:00
Sets the anti-aliasing mode. See [enum ViewportMSAA] for options.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "viewport_set_parent_viewport" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "parent_viewport" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets the viewport's parent to another viewport.
2017-10-21 12:02:08 +02:00
</description>
</method>
2019-05-08 20:25:34 +02:00
<method name= "viewport_set_render_direct_to_screen" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "enabled" type= "bool" />
2019-05-08 20:25:34 +02:00
<description >
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.
</description>
</method>
2017-10-21 12:02:08 +02:00
<method name= "viewport_set_scenario" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "scenario" type= "RID" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets a viewport's scenario.
The scenario contains information about the [enum ScenarioDebugMode], environment information, reflection atlas etc.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "viewport_set_shadow_atlas_quadrant_subdivision" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "quadrant" type= "int" />
<argument index= "2" name= "subdivision" type= "int" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets the shadow atlas quadrant's subdivision.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "viewport_set_shadow_atlas_size" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "size" type= "int" />
2017-10-21 12:02:08 +02:00
<description >
2019-09-04 23:32:46 +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-10-21 12:02:08 +02:00
</description>
</method>
2021-03-27 18:58:12 +01:00
<method name= "viewport_set_sharpen_intensity" >
2021-08-10 12:11:30 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "intensity" type= "float" />
2021-03-27 18:58:12 +01:00
<description >
Sets the sharpening [code]intensity[/code] for the [code]viewport[/code]. If set to a value greater than [code]0.0[/code], contrast-adaptive sharpening will be applied to the 3D viewport. This has a low performance cost and can be used to recover some of the sharpness lost from using FXAA. Values around [code]0.5[/code] generally give the best results. See also [method viewport_set_use_fxaa].
</description>
</method>
2017-10-21 12:02:08 +02:00
<method name= "viewport_set_size" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "width" type= "int" />
<argument index= "2" name= "height" type= "int" />
2017-10-21 12:02:08 +02:00
<description >
2017-11-26 16:37:37 +01:00
Sets the viewport's width and height.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "viewport_set_transparent_background" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "enabled" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2018-12-20 13:46:54 +01:00
If [code]true[/code], the viewport renders its background as transparent.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "viewport_set_update_mode" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "update_mode" type= "int" enum= "VisualServer.ViewportUpdateMode" />
2017-10-21 12:02:08 +02:00
<description >
2018-09-01 20:07:51 +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>
<method name= "viewport_set_usage" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "usage" type= "int" enum= "VisualServer.ViewportUsage" />
2017-10-21 12:02:08 +02:00
<description >
2018-09-01 20:07:51 +02:00
Sets the viewport's 2D/3D mode. See [enum ViewportUsage] constants for options.
2017-10-21 12:02:08 +02:00
</description>
</method>
<method name= "viewport_set_use_arvr" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "use_arvr" type= "bool" />
2017-10-21 12:02:08 +02:00
<description >
2018-12-20 13:46:54 +01:00
If [code]true[/code], the viewport uses augmented or virtual reality technologies. See [ARVRInterface].
2017-10-21 12:02:08 +02:00
</description>
</method>
2020-10-20 18:58:07 +02:00
<method name= "viewport_set_use_debanding" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "debanding" type= "bool" />
2020-10-20 18:58:07 +02:00
<description >
If [code]true[/code], uses a fast post-processing filter to make banding significantly less visible. In some cases, debanding may introduce a slightly noticeable dithering pattern. It's recommended to enable debanding only when actually needed since the dithering pattern will make lossless-compressed screenshots larger.
[b]Note:[/b] Only available on the GLES3 backend. [member Viewport.hdr] must also be [code]true[/code] for debanding to be effective.
</description>
</method>
2020-08-22 00:15:50 +02:00
<method name= "viewport_set_use_fxaa" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "fxaa" type= "bool" />
2020-08-22 00:15:50 +02:00
<description >
2021-03-27 18:58:12 +01:00
Enables fast approximate antialiasing for this viewport. FXAA is a popular screen-space antialiasing method, which is fast but will make the image look blurry, especially at lower resolutions. It can still work relatively well at large resolutions such as 1440p and 4K. Some of the lost sharpness can be recovered by enabling contrast-adaptive sharpening (see [method viewport_set_sharpen_intensity]).
2020-08-22 00:15:50 +02:00
</description>
</method>
2017-10-21 12:02:08 +02:00
<method name= "viewport_set_vflip" >
2021-07-30 15:28:05 +02:00
<return type= "void" />
<argument index= "0" name= "viewport" type= "RID" />
<argument index= "1" name= "enabled" type= "bool" />
2017-09-12 22:42:36 +02:00
<description >
2018-12-20 13:46:54 +01:00
If [code]true[/code], the viewport's rendering is flipped vertically.
2017-09-12 22:42:36 +02:00
</description>
</method>
</methods>
2020-06-18 12:49:24 +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 >
2019-12-15 01:38:19 +01:00
Emitted at the end of the frame, after the VisualServer 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 >
2019-12-15 01:38:19 +01:00
Emitted at the beginning of the frame, before the VisualServer 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>
2017-11-24 23:16:30 +01:00
<constant name= "MATERIAL_RENDER_PRIORITY_MIN" value= "-128" >
2017-11-26 16:37:37 +01:00
The minimum renderpriority of all materials.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "MATERIAL_RENDER_PRIORITY_MAX" value= "127" >
2017-11-26 16:37:37 +01:00
The maximum renderpriority of all materials.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "CUBEMAP_LEFT" value= "0" enum= "CubeMapSide" >
2017-11-26 16:37:37 +01:00
Marks the left side of a cubemap.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "CUBEMAP_RIGHT" value= "1" enum= "CubeMapSide" >
2017-11-26 16:37:37 +01:00
Marks the right side of a cubemap.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "CUBEMAP_BOTTOM" value= "2" enum= "CubeMapSide" >
2017-11-26 16:37:37 +01:00
Marks the bottom side of a cubemap.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "CUBEMAP_TOP" value= "3" enum= "CubeMapSide" >
2017-11-26 16:37:37 +01:00
Marks the top side of a cubemap.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "CUBEMAP_FRONT" value= "4" enum= "CubeMapSide" >
2017-11-26 16:37:37 +01:00
Marks the front side of a cubemap.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "CUBEMAP_BACK" value= "5" enum= "CubeMapSide" >
2017-11-26 16:37:37 +01:00
Marks the back side of a cubemap.
2017-10-21 12:02:08 +02:00
</constant>
2018-08-21 00:35:30 +02:00
<constant name= "TEXTURE_TYPE_2D" value= "0" enum= "TextureType" >
2020-01-06 00:36:50 +01:00
Normal texture with 2 dimensions, width and height.
2018-08-21 00:35:30 +02:00
</constant>
2020-03-25 11:42:15 +01:00
<constant name= "TEXTURE_TYPE_CUBEMAP" value= "2" enum= "TextureType" >
2020-01-06 00:36:50 +01:00
Texture made up of six faces, can be looked up with a [code]vec3[/code] in shader.
2018-08-21 00:35:30 +02:00
</constant>
2020-03-25 11:42:15 +01:00
<constant name= "TEXTURE_TYPE_2D_ARRAY" value= "3" enum= "TextureType" >
2020-01-06 00:36:50 +01:00
An array of 2-dimensional textures.
2018-08-21 00:35:30 +02:00
</constant>
2020-03-25 11:42:15 +01:00
<constant name= "TEXTURE_TYPE_3D" value= "4" enum= "TextureType" >
2020-01-06 00:36:50 +01:00
A 3-dimensional texture with width, height, and depth.
2018-08-21 00:35:30 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "TEXTURE_FLAG_MIPMAPS" value= "1" enum= "TextureFlags" >
2019-06-22 01:04:47 +02:00
Generates mipmaps, which are smaller versions of the same texture to use when zoomed out, keeping the aspect ratio.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "TEXTURE_FLAG_REPEAT" value= "2" enum= "TextureFlags" >
2019-06-22 01:04:47 +02:00
Repeats the texture (instead of clamp to edge).
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "TEXTURE_FLAG_FILTER" value= "4" enum= "TextureFlags" >
2019-06-22 01:04:47 +02:00
Uses a magnifying filter, to enable smooth zooming in of the texture.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "TEXTURE_FLAG_ANISOTROPIC_FILTER" value= "8" enum= "TextureFlags" >
2019-06-22 01:04:47 +02:00
Uses anisotropic mipmap filtering. Generates smaller versions of the same texture with different aspect ratios.
This results in better-looking textures when viewed from oblique angles.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "TEXTURE_FLAG_CONVERT_TO_LINEAR" value= "16" enum= "TextureFlags" >
2019-06-22 01:04:47 +02:00
Converts the texture to the sRGB color space.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "TEXTURE_FLAG_MIRRORED_REPEAT" value= "32" enum= "TextureFlags" >
2019-06-22 01:04:47 +02:00
Repeats the texture with alternate sections mirrored.
2017-10-21 12:02:08 +02:00
</constant>
2018-08-21 00:35:30 +02:00
<constant name= "TEXTURE_FLAG_USED_FOR_STREAMING" value= "2048" enum= "TextureFlags" >
2017-11-26 16:37:37 +01:00
Texture is a video surface.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "TEXTURE_FLAGS_DEFAULT" value= "7" enum= "TextureFlags" >
2019-06-29 15:24:23 +02:00
Default flags. [constant TEXTURE_FLAG_MIPMAPS], [constant TEXTURE_FLAG_REPEAT] and [constant TEXTURE_FLAG_FILTER] are enabled.
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>
2017-11-24 23:16:30 +01:00
<constant name= "SHADER_MAX" value= "3" 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>
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>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_BONES" value= "6" enum= "ArrayType" >
2017-11-26 16:37:37 +01:00
Array contains bone information.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_WEIGHTS" value= "7" enum= "ArrayType" >
2017-11-26 16:37:37 +01:00
Array is weight information.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_INDEX" value= "8" enum= "ArrayType" >
2017-11-26 16:37:37 +01:00
Array is index array.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_MAX" value= "9" 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>
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>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FORMAT_BONES" value= "64" 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>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FORMAT_WEIGHTS" value= "128" 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>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FORMAT_INDEX" value= "256" 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>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COMPRESS_VERTEX" value= "512" enum= "ArrayFormat" >
2017-11-26 16:37:37 +01:00
Flag used to mark a compressed (half float) vertex array.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COMPRESS_NORMAL" value= "1024" enum= "ArrayFormat" >
2017-11-26 16:37:37 +01:00
Flag used to mark a compressed (half float) normal array.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COMPRESS_TANGENT" value= "2048" enum= "ArrayFormat" >
2017-11-26 16:37:37 +01:00
Flag used to mark a compressed (half float) tangent array.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COMPRESS_COLOR" value= "4096" enum= "ArrayFormat" >
2017-11-26 16:37:37 +01:00
Flag used to mark a compressed (half float) color array.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COMPRESS_TEX_UV" value= "8192" enum= "ArrayFormat" >
2019-06-22 01:04:47 +02:00
Flag used to mark a compressed (half float) UV coordinates array.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COMPRESS_TEX_UV2" value= "16384" enum= "ArrayFormat" >
2019-06-22 01:04:47 +02:00
Flag used to mark a compressed (half float) UV coordinates array for the second UV coordinates.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COMPRESS_BONES" value= "32768" enum= "ArrayFormat" >
2020-01-06 00:36:50 +01:00
Flag used to mark a compressed bone array.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COMPRESS_WEIGHTS" value= "65536" enum= "ArrayFormat" >
2017-11-26 16:37:37 +01:00
Flag used to mark a compressed (half float) weight array.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_COMPRESS_INDEX" value= "131072" enum= "ArrayFormat" >
2020-01-06 00:36:50 +01:00
Flag used to mark a compressed index array.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FLAG_USE_2D_VERTICES" value= "262144" 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>
2017-11-24 23:16:30 +01:00
<constant name= "ARRAY_FLAG_USE_16_BIT_BONES" value= "524288" enum= "ArrayFormat" >
2019-06-22 01:04:47 +02:00
Flag used to mark that the array uses 16-bit bones instead of 8-bit.
2017-10-21 12:02:08 +02:00
</constant>
2021-03-08 18:58:13 +01:00
<constant name= "ARRAY_FLAG_USE_OCTAHEDRAL_COMPRESSION" value= "2097152" enum= "ArrayFormat" >
Flag used to mark that the array uses an octahedral representation of normal and tangent vectors rather than cartesian.
</constant>
<constant name= "ARRAY_COMPRESS_DEFAULT" value= "2194432" enum= "ArrayFormat" >
Used to set flags [constant ARRAY_COMPRESS_NORMAL], [constant ARRAY_COMPRESS_TANGENT], [constant ARRAY_COMPRESS_COLOR], [constant ARRAY_COMPRESS_TEX_UV], [constant ARRAY_COMPRESS_TEX_UV2], [constant ARRAY_COMPRESS_WEIGHTS], and [constant ARRAY_FLAG_USE_OCTAHEDRAL_COMPRESSION] quickly.
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>
2017-11-24 23:16:30 +01:00
<constant name= "PRIMITIVE_LINE_LOOP" value= "3" enum= "PrimitiveType" >
2017-11-26 16:37:37 +01:00
Primitive to draw consists of a line loop (a line strip with a line between the last and the first vertex).
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PRIMITIVE_TRIANGLES" value= "4" 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>
2017-11-24 23:16:30 +01:00
<constant name= "PRIMITIVE_TRIANGLE_STRIP" value= "5" 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>
2017-11-24 23:16:30 +01:00
<constant name= "PRIMITIVE_TRIANGLE_FAN" value= "6" enum= "PrimitiveType" >
2018-01-18 21:37:17 +01:00
Primitive to draw consists of a triangle strip (the last 2 vertices are always combined with the first to make a triangle).
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "PRIMITIVE_MAX" value= "7" 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>
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>
2021-07-05 15:55:52 +02:00
<constant name= "LIGHT_PARAM_INDIRECT_ENERGY" value= "1" enum= "LightParam" >
Secondary multiplier used with indirect light (light bounces).
</constant>
<constant name= "LIGHT_PARAM_SIZE" value= "2" enum= "LightParam" >
The light's size, currently only used for soft shadows in baked lightmaps.
</constant>
<constant name= "LIGHT_PARAM_SPECULAR" value= "3" 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>
2021-07-05 15:55:52 +02:00
<constant name= "LIGHT_PARAM_RANGE" value= "4" enum= "LightParam" >
2017-11-26 16:37:37 +01:00
The light's range.
2017-10-21 12:02:08 +02:00
</constant>
2021-07-05 15:55:52 +02:00
<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>
2021-07-05 15:55:52 +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>
2021-07-05 15:55:52 +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>
2021-07-05 15:55:52 +02:00
<constant name= "LIGHT_PARAM_CONTACT_SHADOW_SIZE" value= "8" enum= "LightParam" >
2017-11-26 16:37:37 +01:00
Scales the shadow color.
2017-10-21 12:02:08 +02:00
</constant>
2021-07-05 15:55:52 +02:00
<constant name= "LIGHT_PARAM_SHADOW_MAX_DISTANCE" value= "9" 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>
2021-07-05 15:55:52 +02:00
<constant name= "LIGHT_PARAM_SHADOW_SPLIT_1_OFFSET" value= "10" 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>
2021-07-05 15:55:52 +02:00
<constant name= "LIGHT_PARAM_SHADOW_SPLIT_2_OFFSET" value= "11" 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>
2021-07-05 15:55:52 +02:00
<constant name= "LIGHT_PARAM_SHADOW_SPLIT_3_OFFSET" value= "12" 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>
2021-07-05 15:55:52 +02:00
<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>
2021-07-05 15:55:52 +02: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>
2021-07-05 15:55:52 +02:00
<constant name= "LIGHT_PARAM_SHADOW_BIAS_SPLIT_SCALE" value= "15" enum= "LightParam" >
2020-01-06 00:36:50 +01:00
Increases bias on further splits to fix self-shadowing that only occurs far away from the camera.
2017-10-21 12:02:08 +02:00
</constant>
2021-07-05 15:55:52 +02:00
<constant name= "LIGHT_PARAM_MAX" value= "16" 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-08-30 20:16:24 +02:00
<constant name= "LIGHT_BAKE_DISABLED" value= "0" enum= "LightBakeMode" >
</constant>
<constant name= "LIGHT_BAKE_INDIRECT" value= "1" enum= "LightBakeMode" >
</constant>
<constant name= "LIGHT_BAKE_ALL" 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_OMNI_SHADOW_DETAIL_VERTICAL" value= "0" enum= "LightOmniShadowDetail" >
2020-01-06 00:36:50 +01:00
Use more detail vertically when computing shadow map.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "LIGHT_OMNI_SHADOW_DETAIL_HORIZONTAL" value= "1" enum= "LightOmniShadowDetail" >
2020-01-06 00:36:50 +01:00
Use more detail horizontally when computing shadow map.
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>
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>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_UPDATE_ALWAYS" value= "3" 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>
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" >
2019-06-22 01:04:47 +02:00
Multisample antialiasing is set to 2× .
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" >
2019-06-22 01:04:47 +02:00
Multisample antialiasing is set to 4× .
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" >
2019-06-22 01:04:47 +02:00
Multisample antialiasing is set to 8× .
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" >
2019-06-22 01:04:47 +02:00
Multisample antialiasing is set to 16× .
2017-10-21 12:02:08 +02:00
</constant>
2019-11-10 09:30:20 +01:00
<constant name= "VIEWPORT_MSAA_EXT_2X" value= "5" enum= "ViewportMSAA" >
2019-11-16 15:36:43 +01:00
Multisample antialiasing is set to 2× on external texture. Special mode for GLES2 Android VR (Oculus Quest and Go).
2019-11-10 09:30:20 +01:00
</constant>
<constant name= "VIEWPORT_MSAA_EXT_4X" value= "6" enum= "ViewportMSAA" >
2019-11-16 15:36:43 +01:00
Multisample antialiasing is set to 4× on external texture. Special mode for GLES2 Android VR (Oculus Quest and Go).
2019-11-10 09:30:20 +01:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_USAGE_2D" value= "0" enum= "ViewportUsage" >
2017-11-26 16:37:37 +01:00
The Viewport does not render 3D but samples.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_USAGE_2D_NO_SAMPLING" value= "1" enum= "ViewportUsage" >
2017-11-26 16:37:37 +01:00
The Viewport does not render 3D and does not sample.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_USAGE_3D" value= "2" enum= "ViewportUsage" >
2017-11-26 16:37:37 +01:00
The Viewport renders 3D with effects.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_USAGE_3D_NO_EFFECTS" value= "3" enum= "ViewportUsage" >
2017-11-26 16:37:37 +01:00
The Viewport renders 3D but without effects.
2017-10-21 12:02:08 +02:00
</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>
2020-04-17 09:44:12 +02:00
<constant name= "VIEWPORT_RENDER_INFO_2D_ITEMS_IN_FRAME" value= "6" enum= "ViewportRenderInfo" >
Number of 2d items drawn this frame.
</constant>
<constant name= "VIEWPORT_RENDER_INFO_2D_DRAW_CALLS_IN_FRAME" value= "7" enum= "ViewportRenderInfo" >
Number of 2d draw calls during this frame.
</constant>
<constant name= "VIEWPORT_RENDER_INFO_MAX" value= "8" 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" >
2017-11-26 16:37:37 +01:00
Debug draw sets objects to unshaded.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_DEBUG_DRAW_OVERDRAW" value= "2" enum= "ViewportDebugDraw" >
2017-11-26 16:37:37 +01:00
Overwrites clear color to [code](0,0,0,0)[/code].
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "VIEWPORT_DEBUG_DRAW_WIREFRAME" value= "3" 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>
2017-11-24 23:16:30 +01:00
<constant name= "SCENARIO_DEBUG_DISABLED" value= "0" enum= "ScenarioDebugMode" >
2020-01-06 00:36:50 +01:00
Do not use a debug mode.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "SCENARIO_DEBUG_WIREFRAME" value= "1" enum= "ScenarioDebugMode" >
2020-01-06 00:36:50 +01:00
Draw all objects as wireframe models.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "SCENARIO_DEBUG_OVERDRAW" value= "2" enum= "ScenarioDebugMode" >
2020-01-06 00:36:50 +01:00
Draw all objects in a way that displays how much overdraw is occurring. Overdraw occurs when a section of pixels is drawn and shaded and then another object covers it up. To optimize a scene, you should reduce overdraw.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "SCENARIO_DEBUG_SHADELESS" value= "3" enum= "ScenarioDebugMode" >
2020-01-06 00:36:50 +01:00
Draw all objects without shading. Equivalent to setting all objects shaders to [code]unshaded[/code].
2017-10-21 12:02:08 +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>
2017-11-24 23:16:30 +01:00
<constant name= "INSTANCE_IMMEDIATE" value= "3" enum= "InstanceType" >
2017-11-26 16:37:37 +01:00
The instance is an immediate geometry.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "INSTANCE_PARTICLES" value= "4" 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>
2017-11-24 23:16:30 +01: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>
2017-11-24 23:16:30 +01: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>
2017-11-24 23:16:30 +01:00
<constant name= "INSTANCE_GI_PROBE" value= "7" enum= "InstanceType" >
2020-01-05 09:33:16 +01:00
The instance is a GI probe.
2017-10-21 12:02:08 +02:00
</constant>
2017-12-16 20:34:16 +01:00
<constant name= "INSTANCE_LIGHTMAP_CAPTURE" value= "8" enum= "InstanceType" >
2020-01-05 09:33:16 +01:00
The instance is a lightmap capture.
2017-12-16 20:34:16 +01:00
</constant>
<constant name= "INSTANCE_MAX" value= "9" 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>
2017-11-24 23:16:30 +01:00
<constant name= "INSTANCE_GEOMETRY_MASK" value= "30" 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>
2018-08-21 00:35:30 +02:00
<constant name= "INSTANCE_FLAG_DRAW_NEXT_FRAME_IF_VISIBLE" value= "1" 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>
<constant name= "INSTANCE_FLAG_MAX" value= "2" 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>
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>
2017-11-24 23:16:30 +01:00
<constant name= "CANVAS_LIGHT_MODE_ADD" value= "0" enum= "CanvasLightMode" >
2017-11-26 16:37:37 +01:00
Adds light color additive to the canvas.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "CANVAS_LIGHT_MODE_SUB" value= "1" enum= "CanvasLightMode" >
2017-11-26 16:37:37 +01:00
Adds light color subtractive to the canvas.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "CANVAS_LIGHT_MODE_MIX" value= "2" enum= "CanvasLightMode" >
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_MODE_MASK" value= "3" enum= "CanvasLightMode" >
2017-11-26 16:37:37 +01:00
The light adds color depending on mask.
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>
2017-11-24 23:16:30 +01:00
<constant name= "CANVAS_LIGHT_FILTER_PCF3" value= "1" enum= "CanvasLightShadowFilter" >
2020-01-06 00:36:50 +01:00
Use PCF3 filtering to filter canvas light shadows.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "CANVAS_LIGHT_FILTER_PCF5" value= "2" 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>
2017-11-24 23:16:30 +01:00
<constant name= "CANVAS_LIGHT_FILTER_PCF7" value= "3" enum= "CanvasLightShadowFilter" >
2020-01-06 00:36:50 +01:00
Use PCF7 filtering to filter canvas light shadows.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "CANVAS_LIGHT_FILTER_PCF9" value= "4" enum= "CanvasLightShadowFilter" >
2020-01-06 00:36:50 +01:00
Use PCF9 filtering to filter canvas light shadows.
2017-10-21 12:02:08 +02:00
</constant>
2017-11-24 23:16:30 +01:00
<constant name= "CANVAS_LIGHT_FILTER_PCF13" value= "5" 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>
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>
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>
2020-04-17 09:44:12 +02:00
<constant name= "INFO_2D_ITEMS_IN_FRAME" value= "6" enum= "RenderInfo" >
The amount of 2d items in the frame.
</constant>
<constant name= "INFO_2D_DRAW_CALLS_IN_FRAME" value= "7" enum= "RenderInfo" >
The amount of 2d draw calls in frame.
</constant>
<constant name= "INFO_USAGE_VIDEO_MEM_TOTAL" value= "8" enum= "RenderInfo" >
2019-06-26 15:57:13 +02:00
Unimplemented in the GLES2 and GLES3 rendering backends, always returns 0.
2017-10-21 12:02:08 +02:00
</constant>
2020-04-17 09:44:12 +02:00
<constant name= "INFO_VIDEO_MEM_USED" value= "9" 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>
2020-04-17 09:44:12 +02:00
<constant name= "INFO_TEXTURE_MEM_USED" value= "10" 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>
2020-04-17 09:44:12 +02:00
<constant name= "INFO_VERTEX_MEM_USED" value= "11" 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>
2018-02-19 10:47:16 +01:00
<constant name= "MULTIMESH_TRANSFORM_2D" value= "0" enum= "MultimeshTransformFormat" >
2020-01-05 09:33:16 +01:00
Use [Transform2D] to store MultiMesh transform.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "MULTIMESH_TRANSFORM_3D" value= "1" enum= "MultimeshTransformFormat" >
2020-01-05 09:33:16 +01:00
Use [Transform] to store MultiMesh transform.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "MULTIMESH_COLOR_NONE" value= "0" enum= "MultimeshColorFormat" >
2020-01-05 09:33:16 +01:00
MultiMesh does not use per-instance color.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "MULTIMESH_COLOR_8BIT" value= "1" enum= "MultimeshColorFormat" >
2020-01-05 09:33:16 +01:00
MultiMesh color uses 8 bits per component. This packs the color into a single float.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "MULTIMESH_COLOR_FLOAT" value= "2" enum= "MultimeshColorFormat" >
2020-01-05 09:33:16 +01:00
MultiMesh color uses a float per channel.
2018-02-19 10:47:16 +01:00
</constant>
2019-01-07 11:46:26 +01:00
<constant name= "MULTIMESH_CUSTOM_DATA_NONE" value= "0" enum= "MultimeshCustomDataFormat" >
2020-01-05 09:33:16 +01:00
MultiMesh does not use custom data.
2019-01-07 11:46:26 +01:00
</constant>
<constant name= "MULTIMESH_CUSTOM_DATA_8BIT" value= "1" enum= "MultimeshCustomDataFormat" >
2020-01-05 09:33:16 +01:00
MultiMesh custom data uses 8 bits per component. This packs the 4-component custom data into a single float.
2019-01-07 11:46:26 +01:00
</constant>
<constant name= "MULTIMESH_CUSTOM_DATA_FLOAT" value= "2" enum= "MultimeshCustomDataFormat" >
2020-01-05 09:33:16 +01:00
MultiMesh custom data uses a float per component.
2019-01-07 11:46:26 +01:00
</constant>
2018-02-19 10:47:16 +01:00
<constant name= "REFLECTION_PROBE_UPDATE_ONCE" value= "0" enum= "ReflectionProbeUpdateMode" >
2020-01-06 00:36:50 +01:00
Reflection probe will update reflections once and then stop.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "REFLECTION_PROBE_UPDATE_ALWAYS" value= "1" enum= "ReflectionProbeUpdateMode" >
2020-01-06 00:36:50 +01:00
Reflection probe will update each frame. This mode is necessary to capture moving objects.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "PARTICLES_DRAW_ORDER_INDEX" value= "0" enum= "ParticlesDrawOrder" >
2020-01-06 00:36:50 +01:00
Draw particles in the order that they appear in the particles array.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "PARTICLES_DRAW_ORDER_LIFETIME" value= "1" enum= "ParticlesDrawOrder" >
2020-01-06 00:36:50 +01:00
Sort particles based on their lifetime.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "PARTICLES_DRAW_ORDER_VIEW_DEPTH" value= "2" enum= "ParticlesDrawOrder" >
2020-01-06 00:36:50 +01:00
Sort particles based on their distance to the camera.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "ENV_BG_CLEAR_COLOR" value= "0" enum= "EnvironmentBG" >
2020-01-06 00:36:50 +01:00
Use the clear color as background.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "ENV_BG_COLOR" value= "1" enum= "EnvironmentBG" >
2020-01-06 00:36:50 +01:00
Use a specified color as the background.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "ENV_BG_SKY" value= "2" enum= "EnvironmentBG" >
2020-01-06 00:36:50 +01:00
Use a sky resource for the background.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "ENV_BG_COLOR_SKY" value= "3" enum= "EnvironmentBG" >
2020-01-06 00:36:50 +01:00
Use a custom color for background, but use a sky for shading and reflections.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "ENV_BG_CANVAS" value= "4" enum= "EnvironmentBG" >
2020-01-06 00:36:50 +01:00
Use a specified canvas layer as the background. This can be useful for instantiating a 2D scene in a 3D world.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "ENV_BG_KEEP" value= "5" enum= "EnvironmentBG" >
2020-01-06 00:36:50 +01:00
Do not clear the background, use whatever was rendered last frame as the background.
2018-02-19 10:47:16 +01:00
</constant>
2017-08-20 16:17:24 +02:00
<constant name= "ENV_BG_MAX" value= "7" enum= "EnvironmentBG" >
2019-06-27 11:10:53 +02:00
Represents the size of the [enum EnvironmentBG] enum.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "ENV_DOF_BLUR_QUALITY_LOW" value= "0" enum= "EnvironmentDOFBlurQuality" >
2020-01-06 00:36:50 +01:00
Use lowest blur quality. Fastest, but may look bad.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "ENV_DOF_BLUR_QUALITY_MEDIUM" value= "1" enum= "EnvironmentDOFBlurQuality" >
2020-01-06 00:36:50 +01:00
Use medium blur quality.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "ENV_DOF_BLUR_QUALITY_HIGH" value= "2" enum= "EnvironmentDOFBlurQuality" >
2020-01-06 00:36:50 +01:00
Used highest blur quality. Looks the best, but is the slowest.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "GLOW_BLEND_MODE_ADDITIVE" value= "0" enum= "EnvironmentGlowBlendMode" >
2020-01-06 00:36:50 +01:00
Add the effect of the glow on top of the scene.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "GLOW_BLEND_MODE_SCREEN" value= "1" enum= "EnvironmentGlowBlendMode" >
2020-01-06 00:36:50 +01:00
Blends the glow effect with the screen. Does not get as bright as additive.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "GLOW_BLEND_MODE_SOFTLIGHT" value= "2" enum= "EnvironmentGlowBlendMode" >
2020-01-06 00:36:50 +01:00
Produces a subtle color disturbance around objects.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "GLOW_BLEND_MODE_REPLACE" value= "3" enum= "EnvironmentGlowBlendMode" >
2020-01-06 00:36:50 +01:00
Shows the glow effect by itself without the underlying scene.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "ENV_TONE_MAPPER_LINEAR" value= "0" enum= "EnvironmentToneMapper" >
2022-04-30 16:21:10 +02:00
Output color as they came in. This can cause bright lighting to look blown out, with noticeable clipping in the output colors.
2018-02-19 10:47:16 +01:00
</constant>
2018-10-07 15:52:07 +02:00
<constant name= "ENV_TONE_MAPPER_REINHARD" value= "1" enum= "EnvironmentToneMapper" >
2022-04-30 16:21:10 +02:00
Use the Reinhard tonemapper. Performs a variation on rendered pixels' colors by this formula: [code]color = color / (1 + color)[/code]. This avoids clipping bright highlights, but the resulting image can look a bit dull.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "ENV_TONE_MAPPER_FILMIC" value= "2" enum= "EnvironmentToneMapper" >
2022-04-30 16:21:10 +02:00
Use the filmic tonemapper. This avoids clipping bright highlights, with a resulting image that usually looks more vivid than [constant ENV_TONE_MAPPER_REINHARD].
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "ENV_TONE_MAPPER_ACES" value= "3" enum= "EnvironmentToneMapper" >
2022-04-30 16:21:10 +02:00
Use the legacy Godot version of the Academy Color Encoding System tonemapper. Unlike [constant ENV_TONE_MAPPER_ACES_FITTED], this version of ACES does not handle bright lighting in a physically accurate way. ACES typically has a more contrasted output compared to [constant ENV_TONE_MAPPER_REINHARD] and [constant ENV_TONE_MAPPER_FILMIC].
[b]Note:[/b] This tonemapping operator will be removed in Godot 4.0 in favor of the more accurate [constant ENV_TONE_MAPPER_ACES_FITTED].
2018-02-19 10:47:16 +01:00
</constant>
2021-09-07 21:26:20 +02:00
<constant name= "ENV_TONE_MAPPER_ACES_FITTED" value= "4" enum= "EnvironmentToneMapper" >
2022-04-30 16:21:10 +02:00
Use the Academy Color Encoding System tonemapper. ACES is slightly more expensive than other options, but it handles bright lighting in a more realistic fashion by desaturating it as it becomes brighter. ACES typically has a more contrasted output compared to [constant ENV_TONE_MAPPER_REINHARD] and [constant ENV_TONE_MAPPER_FILMIC].
2021-09-07 21:26:20 +02:00
</constant>
2018-02-19 10:47:16 +01:00
<constant name= "ENV_SSAO_QUALITY_LOW" value= "0" enum= "EnvironmentSSAOQuality" >
2020-01-12 14:30:21 +01:00
Lowest quality of screen space ambient occlusion.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "ENV_SSAO_QUALITY_MEDIUM" value= "1" enum= "EnvironmentSSAOQuality" >
2020-01-06 00:36:50 +01:00
Medium quality screen space ambient occlusion.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "ENV_SSAO_QUALITY_HIGH" value= "2" enum= "EnvironmentSSAOQuality" >
2020-01-06 00:36:50 +01:00
Highest quality screen space ambient occlusion.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "ENV_SSAO_BLUR_DISABLED" value= "0" enum= "EnvironmentSSAOBlur" >
2020-01-06 00:36:50 +01:00
Disables the blur set for SSAO. Will make SSAO look noisier.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "ENV_SSAO_BLUR_1x1" value= "1" enum= "EnvironmentSSAOBlur" >
2020-01-12 14:30:21 +01:00
Perform a 1x1 blur on the SSAO output.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "ENV_SSAO_BLUR_2x2" value= "2" enum= "EnvironmentSSAOBlur" >
2020-01-06 00:36:50 +01:00
Performs a 2x2 blur on the SSAO output.
2018-02-19 10:47:16 +01:00
</constant>
<constant name= "ENV_SSAO_BLUR_3x3" value= "3" enum= "EnvironmentSSAOBlur" >
2020-01-06 00:36:50 +01:00
Performs a 3x3 blur on the SSAO output. Use this for smoothest SSAO.
2018-02-19 10:47:16 +01:00
</constant>
2021-10-05 20:05:57 +02:00
<constant name= "CHANGED_PRIORITY_ANY" value= "0" enum= "ChangedPriority" >
Used to query for any changes that request a redraw, whatever the priority.
</constant>
<constant name= "CHANGED_PRIORITY_LOW" value= "1" enum= "ChangedPriority" >
Registered changes which have low priority can be optionally prevented from causing editor redraws. Examples might include dynamic shaders (typically using the [code]TIME[/code] built-in).
</constant>
<constant name= "CHANGED_PRIORITY_HIGH" value= "2" enum= "ChangedPriority" >
Registered changes which can cause a redraw default to high priority.
</constant>
2017-09-12 22:42:36 +02:00
</constants>
2017-12-10 00:43:30 +01:00
</class>