mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #35134 from clayjohn/DOCS-update-multiple
Completed documentation for many visual nodes
This commit is contained in:
commit
6e8eb0d98d
@ -23,6 +23,7 @@
|
||||
The [code]MeshInstance[/code] is ready to be added to the SceneTree to be shown.
|
||||
</description>
|
||||
<tutorials>
|
||||
<link>http://docs.godotengine.org/en/latest/tutorials/content/procedural_geometry/arraymesh.html</link>
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="add_blend_shape">
|
||||
@ -185,6 +186,7 @@
|
||||
</methods>
|
||||
<members>
|
||||
<member name="blend_shape_mode" type="int" setter="set_blend_shape_mode" getter="get_blend_shape_mode" enum="Mesh.BlendShapeMode" default="1">
|
||||
Sets the blend shape mode to one of [enum Mesh.BlendShapeMode].
|
||||
</member>
|
||||
<member name="custom_aabb" type="AABB" setter="set_custom_aabb" getter="get_custom_aabb" default="AABB( 0, 0, 0, 0, 0, 0 )">
|
||||
Overrides the [AABB] with one defined by user for use with frustum culling. Especially useful to avoid unexpected culling when using a shader to offset vertices.
|
||||
|
@ -1,8 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="Geometry" inherits="Object" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Helper node to calculate generic geometry operations.
|
||||
</brief_description>
|
||||
<description>
|
||||
Geometry provides users with a set of helper functions to create geometric shapes, compute intersections between shapes, and process various other geometric operations.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
@ -15,6 +15,7 @@
|
||||
<argument index="0" name="flag" type="int" enum="GeometryInstance.Flags">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the [enum GeometryInstance.Flags] that have been set for this object.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_custom_aabb">
|
||||
@ -34,6 +35,7 @@
|
||||
<argument index="1" name="value" type="bool">
|
||||
</argument>
|
||||
<description>
|
||||
Sets the [enum GeometryInstance.Flags] specified. See [enum GeometryInstance.Flags] for options.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
@ -71,6 +71,7 @@
|
||||
<argument index="0" name="bump_scale" type="float" default="1.0">
|
||||
</argument>
|
||||
<description>
|
||||
Converts a bumpmap to a normalmap. A bumpmap provides a height offset per-pixel, while a normalmap provides a normal direction per pixel.
|
||||
</description>
|
||||
</method>
|
||||
<method name="clear_mipmaps">
|
||||
@ -165,7 +166,7 @@
|
||||
<return type="int" enum="Image.AlphaMode">
|
||||
</return>
|
||||
<description>
|
||||
Returns [constant ALPHA_BLEND] if the image has data for alpha values. Returns [constant ALPHA_BIT] if all the alpha values are below a certain threshold or the maximum value. Returns [constant ALPHA_NONE] if no data for alpha values is found.
|
||||
Returns [constant ALPHA_BLEND] if the image has data for alpha values. Returns [constant ALPHA_BIT] if all the alpha values are stored in a single bit. Returns [constant ALPHA_NONE] if no data for alpha values is found.
|
||||
</description>
|
||||
</method>
|
||||
<method name="expand_x2_hq2x">
|
||||
@ -405,6 +406,7 @@
|
||||
<return type="Image">
|
||||
</return>
|
||||
<description>
|
||||
Converts a standard RGBE (Red Green Blue Exponent) image to an sRGB image.
|
||||
</description>
|
||||
</method>
|
||||
<method name="save_exr" qualifiers="const">
|
||||
@ -502,8 +504,10 @@
|
||||
The maximal height allowed for [Image] resources.
|
||||
</constant>
|
||||
<constant name="FORMAT_L8" value="0" enum="Format">
|
||||
Texture format with a single 8-bit depth representing luminance.
|
||||
</constant>
|
||||
<constant name="FORMAT_LA8" value="1" enum="Format">
|
||||
OpenGL texture format with two values, luminance and alpha each stored with 8 bits.
|
||||
</constant>
|
||||
<constant name="FORMAT_R8" value="2" enum="Format">
|
||||
OpenGL texture format [code]RED[/code] with a single component and a bitdepth of 8.
|
||||
@ -643,26 +647,37 @@
|
||||
Performs Lanczos interpolation. This is the slowest image resizing mode, but it typically gives the best results, especially when downscalng images.
|
||||
</constant>
|
||||
<constant name="ALPHA_NONE" value="0" enum="AlphaMode">
|
||||
Image does not have alpha.
|
||||
</constant>
|
||||
<constant name="ALPHA_BIT" value="1" enum="AlphaMode">
|
||||
Image stores alpha in a single bit.
|
||||
</constant>
|
||||
<constant name="ALPHA_BLEND" value="2" enum="AlphaMode">
|
||||
Image uses alpha.
|
||||
</constant>
|
||||
<constant name="COMPRESS_S3TC" value="0" enum="CompressMode">
|
||||
Use S3TC compression.
|
||||
</constant>
|
||||
<constant name="COMPRESS_PVRTC2" value="1" enum="CompressMode">
|
||||
Use PVRTC2 compression.
|
||||
</constant>
|
||||
<constant name="COMPRESS_PVRTC4" value="2" enum="CompressMode">
|
||||
Use PVRTC4 compression.
|
||||
</constant>
|
||||
<constant name="COMPRESS_ETC" value="3" enum="CompressMode">
|
||||
Use ETC compression.
|
||||
</constant>
|
||||
<constant name="COMPRESS_ETC2" value="4" enum="CompressMode">
|
||||
Use ETC2 compression.
|
||||
</constant>
|
||||
<constant name="COMPRESS_SOURCE_GENERIC" value="0" enum="CompressSource">
|
||||
Source texture (before compression) is a regular texture. Default for all textures.
|
||||
</constant>
|
||||
<constant name="COMPRESS_SOURCE_SRGB" value="1" enum="CompressSource">
|
||||
Source texture (before compression) is in sRGB space.
|
||||
</constant>
|
||||
<constant name="COMPRESS_SOURCE_NORMAL" value="2" enum="CompressSource">
|
||||
Source texture (before compression) is a normal texture (e.g. it can be compressed into two channels).
|
||||
</constant>
|
||||
</constants>
|
||||
</class>
|
||||
|
@ -16,6 +16,7 @@
|
||||
<argument index="0" name="param" type="int" enum="Light.Param">
|
||||
</argument>
|
||||
<description>
|
||||
Returns the value of the specified [enum Light.Param] parameter.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_param">
|
||||
@ -26,6 +27,7 @@
|
||||
<argument index="1" name="value" type="float">
|
||||
</argument>
|
||||
<description>
|
||||
Sets the value of the specified [enum Light.Param] parameter.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
@ -67,38 +69,54 @@
|
||||
If [code]true[/code], the light will cast shadows.
|
||||
</member>
|
||||
<member name="shadow_reverse_cull_face" type="bool" setter="set_shadow_reverse_cull_face" getter="get_shadow_reverse_cull_face" default="false">
|
||||
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 [constant GeometryInstance.SHADOW_CASTING_SETTING_DOUBLE_SIDED].
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
<constant name="PARAM_ENERGY" value="0" enum="Param">
|
||||
Constant for accessing [member light_energy].
|
||||
</constant>
|
||||
<constant name="PARAM_INDIRECT_ENERGY" value="1" enum="Param">
|
||||
Constant for accessing [member light_indirect_energy].
|
||||
</constant>
|
||||
<constant name="PARAM_SPECULAR" value="2" enum="Param">
|
||||
Constant for accessing [member light_specular].
|
||||
</constant>
|
||||
<constant name="PARAM_RANGE" value="3" enum="Param">
|
||||
Constant for accessing [member OmniLight.omni_range] or [member SpotLight.spot_range].
|
||||
</constant>
|
||||
<constant name="PARAM_ATTENUATION" value="4" enum="Param">
|
||||
Constant for accessing [member OmniLight.omni_attenuation] or [member SpotLight.spot_attenuation].
|
||||
</constant>
|
||||
<constant name="PARAM_SPOT_ANGLE" value="5" enum="Param">
|
||||
Constant for accessing [member SpotLight.spot_angle].
|
||||
</constant>
|
||||
<constant name="PARAM_SPOT_ATTENUATION" value="6" enum="Param">
|
||||
Constant for accessing [member SpotLight.spot_angle_attenuation].
|
||||
</constant>
|
||||
<constant name="PARAM_CONTACT_SHADOW_SIZE" value="7" enum="Param">
|
||||
Constant for accessing [member shadow_contact].
|
||||
</constant>
|
||||
<constant name="PARAM_SHADOW_MAX_DISTANCE" value="8" enum="Param">
|
||||
Constant for accessing [member DirectionalLight.directional_shadow_max_distance].
|
||||
</constant>
|
||||
<constant name="PARAM_SHADOW_SPLIT_1_OFFSET" value="9" enum="Param">
|
||||
Constant for accessing [member DirectionalLight.directional_shadow_split_1].
|
||||
</constant>
|
||||
<constant name="PARAM_SHADOW_SPLIT_2_OFFSET" value="10" enum="Param">
|
||||
Constant for accessing [member DirectionalLight.directional_shadow_split_2].
|
||||
</constant>
|
||||
<constant name="PARAM_SHADOW_SPLIT_3_OFFSET" value="11" enum="Param">
|
||||
Constant for accessing [member DirectionalLight.directional_shadow_split_3].
|
||||
</constant>
|
||||
<constant name="PARAM_SHADOW_NORMAL_BIAS" value="12" enum="Param">
|
||||
Constant for accessing [member DirectionalLight.directional_shadow_normal_bias].
|
||||
</constant>
|
||||
<constant name="PARAM_SHADOW_BIAS" value="13" enum="Param">
|
||||
Constant for accessing [member shadow_bias].
|
||||
</constant>
|
||||
<constant name="PARAM_SHADOW_BIAS_SPLIT_SCALE" value="14" enum="Param">
|
||||
Constant for accessing [member DirectionalLight.directional_shadow_bias_split_scale].
|
||||
</constant>
|
||||
<constant name="PARAM_MAX" value="15" enum="Param">
|
||||
Represents the size of the [enum Param] enum.
|
||||
|
@ -103,6 +103,7 @@
|
||||
</methods>
|
||||
<members>
|
||||
<member name="lightmap_size_hint" type="Vector2" setter="set_lightmap_size_hint" getter="get_lightmap_size_hint" default="Vector2( 0, 0 )">
|
||||
Sets a hint to be used for lightmap resolution in [BakedLightmap]. Overrides [member BakedLightmap.bake_default_texels_per_unit].
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
@ -128,52 +129,76 @@
|
||||
Render array as triangle fans.
|
||||
</constant>
|
||||
<constant name="BLEND_SHAPE_MODE_NORMALIZED" value="0" enum="BlendShapeMode">
|
||||
Blend shapes are normalized.
|
||||
</constant>
|
||||
<constant name="BLEND_SHAPE_MODE_RELATIVE" value="1" enum="BlendShapeMode">
|
||||
Blend shapes are relative to base weight.
|
||||
</constant>
|
||||
<constant name="ARRAY_FORMAT_VERTEX" value="1" enum="ArrayFormat">
|
||||
Mesh array contains vertices. All meshes require a vertex array so this should always be present.
|
||||
</constant>
|
||||
<constant name="ARRAY_FORMAT_NORMAL" value="2" enum="ArrayFormat">
|
||||
Mesh array contains normals.
|
||||
</constant>
|
||||
<constant name="ARRAY_FORMAT_TANGENT" value="4" enum="ArrayFormat">
|
||||
Mesh array contains tangents.
|
||||
</constant>
|
||||
<constant name="ARRAY_FORMAT_COLOR" value="8" enum="ArrayFormat">
|
||||
Mesh array contains colors.
|
||||
</constant>
|
||||
<constant name="ARRAY_FORMAT_TEX_UV" value="16" enum="ArrayFormat">
|
||||
Mesh array contains UVs.
|
||||
</constant>
|
||||
<constant name="ARRAY_FORMAT_TEX_UV2" value="32" enum="ArrayFormat">
|
||||
Mesh array contains second UV.
|
||||
</constant>
|
||||
<constant name="ARRAY_FORMAT_BONES" value="64" enum="ArrayFormat">
|
||||
Mesh array contains bones.
|
||||
</constant>
|
||||
<constant name="ARRAY_FORMAT_WEIGHTS" value="128" enum="ArrayFormat">
|
||||
Mesh array contains bone weights.
|
||||
</constant>
|
||||
<constant name="ARRAY_FORMAT_INDEX" value="256" enum="ArrayFormat">
|
||||
Mesh array uses indices.
|
||||
</constant>
|
||||
<constant name="ARRAY_COMPRESS_BASE" value="9" enum="ArrayFormat">
|
||||
Used internally to calculate other [code]ARRAY_COMPRESS_*[/code] enum values. Do not use.
|
||||
</constant>
|
||||
<constant name="ARRAY_COMPRESS_VERTEX" value="512" enum="ArrayFormat">
|
||||
Flag used to mark a compressed (half float) vertex array.
|
||||
</constant>
|
||||
<constant name="ARRAY_COMPRESS_NORMAL" value="1024" enum="ArrayFormat">
|
||||
Flag used to mark a compressed (half float) normal array.
|
||||
</constant>
|
||||
<constant name="ARRAY_COMPRESS_TANGENT" value="2048" enum="ArrayFormat">
|
||||
Flag used to mark a compressed (half float) tangent array.
|
||||
</constant>
|
||||
<constant name="ARRAY_COMPRESS_COLOR" value="4096" enum="ArrayFormat">
|
||||
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.
|
||||
</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.
|
||||
</constant>
|
||||
<constant name="ARRAY_COMPRESS_BONES" value="32768" enum="ArrayFormat">
|
||||
Flag used to mark a compressed bone array.
|
||||
</constant>
|
||||
<constant name="ARRAY_COMPRESS_WEIGHTS" value="65536" enum="ArrayFormat">
|
||||
Flag used to mark a compressed (half float) weight array.
|
||||
</constant>
|
||||
<constant name="ARRAY_COMPRESS_INDEX" value="131072" enum="ArrayFormat">
|
||||
Flag used to mark a compressed index array.
|
||||
</constant>
|
||||
<constant name="ARRAY_FLAG_USE_2D_VERTICES" value="262144" enum="ArrayFormat">
|
||||
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.
|
||||
</constant>
|
||||
<constant name="ARRAY_COMPRESS_DEFAULT" value="97280" enum="ArrayFormat">
|
||||
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="ARRAY_VERTEX" value="0" enum="ArrayType">
|
||||
Array of vertices.
|
||||
|
@ -66,6 +66,7 @@
|
||||
[NodePath] to the [Skeleton] associated with the instance.
|
||||
</member>
|
||||
<member name="skin" type="Skin" setter="set_skin" getter="get_skin">
|
||||
Sets the skin to be used by this instance.
|
||||
</member>
|
||||
</members>
|
||||
<constants>
|
||||
|
@ -25,6 +25,7 @@
|
||||
<signals>
|
||||
<signal name="texture_changed">
|
||||
<description>
|
||||
Emitted when the [member texture] is changed.
|
||||
</description>
|
||||
</signal>
|
||||
</signals>
|
||||
|
@ -10,6 +10,7 @@
|
||||
<tutorials>
|
||||
<link>http://docs.godotengine.org/en/latest/tutorials/3d/vertex_animation/animating_thousands_of_fish.html</link>
|
||||
<link>http://docs.godotengine.org/en/latest/tutorials/3d/using_multi_mesh_instance.html</link>
|
||||
<link>http://docs.godotengine.org/en/latest/tutorials/optimization/using_multimesh.html</link>
|
||||
</tutorials>
|
||||
<methods>
|
||||
</methods>
|
||||
|
@ -25,6 +25,7 @@
|
||||
<signals>
|
||||
<signal name="texture_changed">
|
||||
<description>
|
||||
Emitted when the [member texture] is changed.
|
||||
</description>
|
||||
</signal>
|
||||
</signals>
|
||||
|
@ -33,8 +33,10 @@
|
||||
Shadows are rendered to a cubemap. Slower than [constant SHADOW_DUAL_PARABOLOID], but higher-quality.
|
||||
</constant>
|
||||
<constant name="SHADOW_DETAIL_VERTICAL" value="0" enum="ShadowDetail">
|
||||
Use more detail vertically when computing the shadow.
|
||||
</constant>
|
||||
<constant name="SHADOW_DETAIL_HORIZONTAL" value="1" enum="ShadowDetail">
|
||||
Use more detail horizontally when computing the shadow.
|
||||
</constant>
|
||||
</constants>
|
||||
</class>
|
||||
|
@ -1,8 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="Texture3D" inherits="TextureLayered" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Texture with 3 dimensions.
|
||||
</brief_description>
|
||||
<description>
|
||||
Texture3D is a 3-dimensional texture that has a width, height, and depth.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
|
@ -1,8 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="VisualInstance" inherits="Spatial" category="Core" version="3.2">
|
||||
<brief_description>
|
||||
Parent of all visual 3D nodes.
|
||||
</brief_description>
|
||||
<description>
|
||||
The VisualInstance is used to connect a resource to a visual representation. All visual 3D nodes inherit from the VisualInstance. In general, you should not access the VisualInstance properties directly as they are accessed and managed by the nodes that inherit from VisualInstance. VisualInstance is the node representation of the [VisualServer] instance.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
@ -18,12 +20,14 @@
|
||||
<return type="RID">
|
||||
</return>
|
||||
<description>
|
||||
Returns the RID of the resource associated with this VisualInstance. For example, if the Node is a [MeshInstance], this will return the RID of the associated [Mesh].
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_instance" qualifiers="const">
|
||||
<return type="RID">
|
||||
</return>
|
||||
<description>
|
||||
Returns the RID of this instance. This RID is the same as the RID returned by [method VisualServer.instance_create]. This RID is needed if you want to call [VisualServer] functions directly on this VisualInstance.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_layer_mask_bit" qualifiers="const">
|
||||
@ -32,6 +36,7 @@
|
||||
<argument index="0" name="layer" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Returns [code]true[/code] when the specified layer is enabled in [member layers] and [code]false[/code] otherwise.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_transformed_aabb" qualifiers="const">
|
||||
@ -48,8 +53,7 @@
|
||||
<argument index="0" name="base" type="RID">
|
||||
</argument>
|
||||
<description>
|
||||
Sets the base of the VisualInstance, which changes how the engine handles the VisualInstance under the hood.
|
||||
It is recommended to only use [method set_base] if you know what you're doing.
|
||||
Sets the resource that is instantiated by this VisualInstance, which changes how the engine handles the VisualInstance under the hood. Equivalent to [method VisualServer.instance_set_base].
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_layer_mask_bit">
|
||||
@ -60,6 +64,7 @@
|
||||
<argument index="1" name="enabled" type="bool">
|
||||
</argument>
|
||||
<description>
|
||||
Enables a particular layer in [member layers].
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
|
Loading…
Reference in New Issue
Block a user