summaryrefslogtreecommitdiff
path: root/doc/classes/VisualServer.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/VisualServer.xml')
-rw-r--r--doc/classes/VisualServer.xml90
1 files changed, 45 insertions, 45 deletions
diff --git a/doc/classes/VisualServer.xml b/doc/classes/VisualServer.xml
index 565d8b3ae0..230b928005 100644
--- a/doc/classes/VisualServer.xml
+++ b/doc/classes/VisualServer.xml
@@ -257,7 +257,7 @@
<argument index="3" name="normal_map" type="RID">
</argument>
<description>
- Adds a particles system to the [CanvasItem]'s draw commands.
+ Adds a particle system to the [CanvasItem]'s draw commands.
</description>
</method>
<method name="canvas_item_add_polygon">
@@ -606,7 +606,7 @@
<argument index="1" name="enabled" type="bool">
</argument>
<description>
- If this is enabled, the z-index of the parent will be added to the children's z-index.
+ If this is enabled, the Z index of the parent will be added to the children's Z index.
</description>
</method>
<method name="canvas_item_set_z_index">
@@ -617,7 +617,7 @@
<argument index="1" name="z_index" type="int">
</argument>
<description>
- Sets the [CanvasItem]'s z-index, i.e. its draw order (lower indexes are drawn first).
+ Sets the [CanvasItem]'s Z index, i.e. its draw order (lower indexes are drawn first).
</description>
</method>
<method name="canvas_light_attach_to_canvas">
@@ -675,7 +675,7 @@
<argument index="1" name="mask" type="int">
</argument>
<description>
- The light mask. See [LightOccluder2D] for more information on light masks
+ The light mask. See [LightOccluder2D] for more information on light masks.
</description>
</method>
<method name="canvas_light_occluder_set_polygon">
@@ -752,7 +752,7 @@
<argument index="1" name="mask" type="int">
</argument>
<description>
- The light mask. See [LightOccluder2D] for more information on light masks
+ The light mask. See [LightOccluder2D] for more information on light masks.
</description>
</method>
<method name="canvas_light_set_item_shadow_cull_mask">
@@ -763,7 +763,7 @@
<argument index="1" name="mask" type="int">
</argument>
<description>
- The shadow mask. binary about which layers this canvas light affects which canvas item's shadows. See [LightOccluder2D] for more information on light masks.
+ The binary mask used to determine which layers this canvas light's shadows affects. See [LightOccluder2D] for more information on light masks.
</description>
</method>
<method name="canvas_light_set_layer_range">
@@ -787,7 +787,7 @@
<argument index="1" name="mode" type="int" enum="VisualServer.CanvasLightMode">
</argument>
<description>
- The mode of the light, see CANVAS_LIGHT_MODE_* constants.
+ The mode of the light, see [code]CANVAS_LIGHT_MODE_*[/code] constants.
</description>
</method>
<method name="canvas_light_set_scale">
@@ -841,7 +841,7 @@
<argument index="1" name="filter" type="int" enum="VisualServer.CanvasLightShadowFilter">
</argument>
<description>
- Sets the canvas light's shadow's filter, see CANVAS_LIGHT_SHADOW_FILTER_* constants.
+ Sets the canvas light's shadow's filter, see [code]CANVAS_LIGHT_SHADOW_FILTER_*[/code] constants.
</description>
</method>
<method name="canvas_light_set_shadow_gradient_length">
@@ -863,7 +863,7 @@
<argument index="1" name="smooth" type="float">
</argument>
<description>
- Smoothens the shadow. The lower, the more smooth.
+ Smoothens the shadow. The lower, the smoother.
</description>
</method>
<method name="canvas_light_set_texture">
@@ -924,7 +924,7 @@
<argument index="1" name="mode" type="int" enum="VisualServer.CanvasOccluderPolygonCullMode">
</argument>
<description>
- Sets an occluder polygons cull mode. See CANVAS_OCCLUDER_POLYGON_CULL_MODE_* constants.
+ Sets an occluder polygons cull mode. See [code]CANVAS_OCCLUDER_POLYGON_CULL_MODE_*[/code] constants.
</description>
</method>
<method name="canvas_occluder_polygon_set_shape">
@@ -1330,7 +1330,7 @@
<argument index="0" name="info" type="int" enum="VisualServer.RenderInfo">
</argument>
<description>
- Returns a certain information, see RENDER_INFO_* for options.
+ Returns a certain information, see [code]RENDER_INFO_*[/code] for options.
</description>
</method>
<method name="get_test_cube">
@@ -1952,7 +1952,7 @@
</argument>
<description>
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.
- Warning: this function is primarily intended for editor usage. For in-game use cases, prefer physics collision.
+ [b]Warning:[/b] This function is primarily intended for editor usage. For in-game use cases, prefer physics collision.
</description>
</method>
<method name="light_directional_set_blend_splits">
@@ -2252,7 +2252,7 @@
<argument index="1" name="width" type="float">
</argument>
<description>
- Sets a materials line width.
+ Sets a material's line width.
</description>
</method>
<method name="material_set_next_pass">
@@ -2263,7 +2263,7 @@
<argument index="1" name="next_material" type="RID">
</argument>
<description>
- Sets an objects next material.
+ Sets an object's next material.
</description>
</method>
<method name="material_set_param">
@@ -2276,7 +2276,7 @@
<argument index="2" name="value" type="Variant">
</argument>
<description>
- Sets a materials parameter.
+ Sets a material's parameter.
</description>
</method>
<method name="material_set_render_priority">
@@ -2315,7 +2315,7 @@
<argument index="4" name="compress_format" type="int" default="97280">
</argument>
<description>
- Adds a surface generated from the Arrays to a mesh. See PRIMITIVE_TYPE_* constants for types.
+ Adds a surface generated from the Arrays to a mesh. See [code]PRIMITIVE_TYPE_*[/code] constants for types.
</description>
</method>
<method name="mesh_clear">
@@ -2477,7 +2477,7 @@
<argument index="1" name="surface" type="int">
</argument>
<description>
- Returns a mesh's surface's arrays for blend shapes
+ Returns a mesh's surface's arrays for blend shapes.
</description>
</method>
<method name="mesh_surface_get_format" qualifiers="const">
@@ -3098,8 +3098,8 @@
<argument index="2" name="userdata" type="Variant">
</argument>
<description>
- Schedules a callback to the corresponding named 'method' on 'where' after a frame has been drawn.
- The callback method must use only 1 argument which will be called with 'userdata'.
+ 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].
</description>
</method>
<method name="scenario_create">
@@ -3527,7 +3527,7 @@
<argument index="1" name="flags" type="int">
</argument>
<description>
- Sets the texture's flags. See [enum TextureFlags] for options
+ Sets the texture's flags. See [enum TextureFlags] for options.
</description>
</method>
<method name="texture_set_path">
@@ -3639,7 +3639,7 @@
<argument index="1" name="info" type="int" enum="VisualServer.ViewportRenderInfo">
</argument>
<description>
- Returns a viewport's render info. for options see VIEWPORT_RENDER_INFO* constants.
+ Returns a viewport's render information. For options, see the [code]VIEWPORT_RENDER_INFO*[/code] constants.
</description>
</method>
<method name="viewport_get_texture" qualifiers="const">
@@ -3797,7 +3797,7 @@
<argument index="1" name="msaa" type="int" enum="VisualServer.ViewportMSAA">
</argument>
<description>
- Sets the anti-aliasing mode. see [enum ViewportMSAA] for options.
+ Sets the anti-aliasing mode. See [enum ViewportMSAA] for options.
</description>
</method>
<method name="viewport_set_parent_viewport">
@@ -3986,29 +3986,29 @@
<constant name="TEXTURE_TYPE_3D" value="3" enum="TextureType">
</constant>
<constant name="TEXTURE_FLAG_MIPMAPS" value="1" enum="TextureFlags">
- Generate mipmaps, which are smaller versions of the same texture to use when zoomed out, keeping the aspect ratio.
+ Generates mipmaps, which are smaller versions of the same texture to use when zoomed out, keeping the aspect ratio.
</constant>
<constant name="TEXTURE_FLAG_REPEAT" value="2" enum="TextureFlags">
- Repeat (instead of clamp to edge).
+ Repeats the texture (instead of clamp to edge).
</constant>
<constant name="TEXTURE_FLAG_FILTER" value="4" enum="TextureFlags">
- Turn on magnifying filter, to enable smooth zooming in of the texture.
+ Uses a magnifying filter, to enable smooth zooming in of the texture.
</constant>
<constant name="TEXTURE_FLAG_ANISOTROPIC_FILTER" value="8" enum="TextureFlags">
- Anisotropic mipmap filtering. Generates smaller versions of the same texture with different aspect ratios.
- More effective on planes often shown going to the horrizon as those textures (Walls or Ground for example) get squashed in the viewport to different aspect ratios and regular mipmaps keep the aspect ratio so they don't optimize storage that well in those cases.
+ 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.
</constant>
<constant name="TEXTURE_FLAG_CONVERT_TO_LINEAR" value="16" enum="TextureFlags">
- Converts texture to SRGB color space.
+ Converts the texture to the sRGB color space.
</constant>
<constant name="TEXTURE_FLAG_MIRRORED_REPEAT" value="32" enum="TextureFlags">
- Repeat texture with alternate sections mirrored.
+ Repeats the texture with alternate sections mirrored.
</constant>
<constant name="TEXTURE_FLAG_USED_FOR_STREAMING" value="2048" enum="TextureFlags">
Texture is a video surface.
</constant>
<constant name="TEXTURE_FLAGS_DEFAULT" value="7" enum="TextureFlags">
- Default flags. Generate mipmaps, repeat, and filter are enabled.
+ Default flags. [constant TEXTURE_FLAG_MIPMAPS], [constant TEXTURE_FLAG_REPEAT] and [constant TEXTURE_FLAG_FILTER] are are enabled.
</constant>
<constant name="SHADER_SPATIAL" value="0" enum="ShaderMode">
Shader is a 3D shader.
@@ -4035,10 +4035,10 @@
Array is a color array.
</constant>
<constant name="ARRAY_TEX_UV" value="4" enum="ArrayType">
- Array is a uv coordinates array.
+ Array is an UV coordinates array.
</constant>
<constant name="ARRAY_TEX_UV2" value="5" enum="ArrayType">
- Array is a uv coordinates array for the second uv coordinates.
+ Array is an UV coordinates array for the second UV coordinates.
</constant>
<constant name="ARRAY_BONES" value="6" enum="ArrayType">
Array contains bone information.
@@ -4065,10 +4065,10 @@
Flag used to mark a color array.
</constant>
<constant name="ARRAY_FORMAT_TEX_UV" value="16" enum="ArrayFormat">
- Flag used to mark a uv coordinates array.
+ Flag used to mark an UV coordinates array.
</constant>
<constant name="ARRAY_FORMAT_TEX_UV2" value="32" enum="ArrayFormat">
- Flag used to mark a uv coordinates array for the second uv coordinates.
+ Flag used to mark an UV coordinates array for the second UV coordinates.
</constant>
<constant name="ARRAY_FORMAT_BONES" value="64" enum="ArrayFormat">
Flag used to mark a bone information array.
@@ -4077,7 +4077,7 @@
Flag used to mark a weights array.
</constant>
<constant name="ARRAY_FORMAT_INDEX" value="256" enum="ArrayFormat">
- Flag used to mark a index array.
+ Flag used to mark an index array.
</constant>
<constant name="ARRAY_COMPRESS_VERTEX" value="512" enum="ArrayFormat">
Flag used to mark a compressed (half float) vertex array.
@@ -4092,10 +4092,10 @@
Flag used to mark a compressed (half float) color array.
</constant>
<constant name="ARRAY_COMPRESS_TEX_UV" value="8192" enum="ArrayFormat">
- Flag used to mark a compressed (half float) uv coordinates array.
+ Flag used to mark a compressed (half float) UV coordinates array.
</constant>
<constant name="ARRAY_COMPRESS_TEX_UV2" value="16384" enum="ArrayFormat">
- Flag used to mark a compressed (half float) uv coordinates array for the second uv coordinates.
+ Flag used to mark a compressed (half float) UV coordinates array for the second UV coordinates.
</constant>
<constant name="ARRAY_COMPRESS_BONES" value="32768" enum="ArrayFormat">
</constant>
@@ -4108,10 +4108,10 @@
Flag used to mark that the array contains 2D vertices.
</constant>
<constant name="ARRAY_FLAG_USE_16_BIT_BONES" value="524288" enum="ArrayFormat">
- Flag used to mark that the array uses 16 bit bones instead of 8 bit.
+ Flag used to mark that the array uses 16-bit bones instead of 8-bit.
</constant>
<constant name="ARRAY_COMPRESS_DEFAULT" value="97280" enum="ArrayFormat">
- Used to set flags ARRAY_COMPRESS_VERTEX, ARRAY_COMPRESS_NORMAL, ARRAY_COMPRESS_TANGENT, ARRAY_COMPRESS_COLOR, ARRAY_COMPRESS_TEX_UV, ARRAY_COMPRESS_TEX_UV2 and ARRAY_COMPRESS_WEIGHTS quickly.
+ Used to set flags [constant ARRAY_COMPRESS_VERTEX], [constant ARRAY_COMPRESS_NORMAL], [constant ARRAY_COMPRESS_TANGENT], [constant ARRAY_COMPRESS_COLOR], [constant ARRAY_COMPRESS_TEX_UV], [constant ARRAY_COMPRESS_TEX_UV2] and [constant ARRAY_COMPRESS_WEIGHTS] quickly.
</constant>
<constant name="PRIMITIVE_POINTS" value="0" enum="PrimitiveType">
Primitive to draw consists of points.
@@ -4145,10 +4145,10 @@
Is a directional (sun) light.
</constant>
<constant name="LIGHT_OMNI" value="1" enum="LightType">
- is an omni light.
+ Is an omni light.
</constant>
<constant name="LIGHT_SPOT" value="2" enum="LightType">
- is an spot light.
+ Is a spot light.
</constant>
<constant name="LIGHT_PARAM_ENERGY" value="0" enum="LightParam">
The light's energy.
@@ -4227,16 +4227,16 @@
Multisample antialiasing is disabled.
</constant>
<constant name="VIEWPORT_MSAA_2X" value="1" enum="ViewportMSAA">
- Multisample antialiasing is set to 2X.
+ Multisample antialiasing is set to 2×.
</constant>
<constant name="VIEWPORT_MSAA_4X" value="2" enum="ViewportMSAA">
- Multisample antialiasing is set to 4X.
+ Multisample antialiasing is set to 4×.
</constant>
<constant name="VIEWPORT_MSAA_8X" value="3" enum="ViewportMSAA">
- Multisample antialiasing is set to 8X.
+ Multisample antialiasing is set to 8×.
</constant>
<constant name="VIEWPORT_MSAA_16X" value="4" enum="ViewportMSAA">
- Multisample antialiasing is set to 16X.
+ Multisample antialiasing is set to 16×.
</constant>
<constant name="VIEWPORT_USAGE_2D" value="0" enum="ViewportUsage">
The Viewport does not render 3D but samples.