mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
classref: Sync with current master branch (2e7fc81)
This commit is contained in:
@@ -78,11 +78,11 @@ Methods
|
||||
.. table::
|
||||
:widths: auto
|
||||
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Variant<class_Variant>` | :ref:`get_instance_shader_parameter<class_GeometryInstance3D_method_get_instance_shader_parameter>` **(** :ref:`StringName<class_StringName>` name **)** |const| |
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_instance_shader_parameter<class_GeometryInstance3D_method_set_instance_shader_parameter>` **(** :ref:`StringName<class_StringName>` name, :ref:`Variant<class_Variant>` value **)** |
|
||||
+-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
+-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Variant<class_Variant>` | :ref:`get_instance_shader_parameter<class_GeometryInstance3D_method_get_instance_shader_parameter>`\ (\ name\: :ref:`StringName<class_StringName>`\ ) |const| |
|
||||
+-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| |void| | :ref:`set_instance_shader_parameter<class_GeometryInstance3D_method_set_instance_shader_parameter>`\ (\ name\: :ref:`StringName<class_StringName>`, value\: :ref:`Variant<class_Variant>`\ ) |
|
||||
+-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
.. rst-class:: classref-section-separator
|
||||
|
||||
@@ -272,8 +272,8 @@ Property Descriptions
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_cast_shadows_setting** **(** :ref:`ShadowCastingSetting<enum_GeometryInstance3D_ShadowCastingSetting>` value **)**
|
||||
- :ref:`ShadowCastingSetting<enum_GeometryInstance3D_ShadowCastingSetting>` **get_cast_shadows_setting** **(** **)**
|
||||
- |void| **set_cast_shadows_setting**\ (\ value\: :ref:`ShadowCastingSetting<enum_GeometryInstance3D_ShadowCastingSetting>`\ )
|
||||
- :ref:`ShadowCastingSetting<enum_GeometryInstance3D_ShadowCastingSetting>` **get_cast_shadows_setting**\ (\ )
|
||||
|
||||
The selected shadow casting flag. See :ref:`ShadowCastingSetting<enum_GeometryInstance3D_ShadowCastingSetting>` for possible values.
|
||||
|
||||
@@ -289,8 +289,8 @@ The selected shadow casting flag. See :ref:`ShadowCastingSetting<enum_GeometryIn
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_custom_aabb** **(** :ref:`AABB<class_AABB>` value **)**
|
||||
- :ref:`AABB<class_AABB>` **get_custom_aabb** **(** **)**
|
||||
- |void| **set_custom_aabb**\ (\ value\: :ref:`AABB<class_AABB>`\ )
|
||||
- :ref:`AABB<class_AABB>` **get_custom_aabb**\ (\ )
|
||||
|
||||
Overrides the bounding box of this node with a custom one. This can be used to avoid the expensive :ref:`AABB<class_AABB>` recalculation that happens when a skeleton is used with a :ref:`MeshInstance3D<class_MeshInstance3D>` or to have precise control over the :ref:`MeshInstance3D<class_MeshInstance3D>`'s bounding box. To use the default AABB, set value to an :ref:`AABB<class_AABB>` with all fields set to ``0.0``. To avoid frustum culling, set :ref:`custom_aabb<class_GeometryInstance3D_property_custom_aabb>` to a very large AABB that covers your entire game world such as ``AABB(-10000, -10000, -10000, 20000, 20000, 20000)``. To disable all forms of culling (including occlusion culling), call :ref:`RenderingServer.instance_set_ignore_culling<class_RenderingServer_method_instance_set_ignore_culling>` on the **GeometryInstance3D**'s :ref:`RID<class_RID>`.
|
||||
|
||||
@@ -306,8 +306,8 @@ Overrides the bounding box of this node with a custom one. This can be used to a
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_extra_cull_margin** **(** :ref:`float<class_float>` value **)**
|
||||
- :ref:`float<class_float>` **get_extra_cull_margin** **(** **)**
|
||||
- |void| **set_extra_cull_margin**\ (\ value\: :ref:`float<class_float>`\ )
|
||||
- :ref:`float<class_float>` **get_extra_cull_margin**\ (\ )
|
||||
|
||||
The extra distance added to the GeometryInstance3D's bounding box (:ref:`AABB<class_AABB>`) to increase its cull box.
|
||||
|
||||
@@ -323,8 +323,8 @@ The extra distance added to the GeometryInstance3D's bounding box (:ref:`AABB<cl
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_lightmap_scale** **(** :ref:`LightmapScale<enum_GeometryInstance3D_LightmapScale>` value **)**
|
||||
- :ref:`LightmapScale<enum_GeometryInstance3D_LightmapScale>` **get_lightmap_scale** **(** **)**
|
||||
- |void| **set_lightmap_scale**\ (\ value\: :ref:`LightmapScale<enum_GeometryInstance3D_LightmapScale>`\ )
|
||||
- :ref:`LightmapScale<enum_GeometryInstance3D_LightmapScale>` **get_lightmap_scale**\ (\ )
|
||||
|
||||
The texel density to use for lightmapping in :ref:`LightmapGI<class_LightmapGI>`. Greater scale values provide higher resolution in the lightmap, which can result in sharper shadows for lights that have both direct and indirect light baked. However, greater scale values will also increase the space taken by the mesh in the lightmap texture, which increases the memory, storage, and bake time requirements. When using a single mesh at different scales, consider adjusting this value to keep the lightmap texel density consistent across meshes.
|
||||
|
||||
@@ -340,8 +340,8 @@ The texel density to use for lightmapping in :ref:`LightmapGI<class_LightmapGI>`
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_gi_mode** **(** :ref:`GIMode<enum_GeometryInstance3D_GIMode>` value **)**
|
||||
- :ref:`GIMode<enum_GeometryInstance3D_GIMode>` **get_gi_mode** **(** **)**
|
||||
- |void| **set_gi_mode**\ (\ value\: :ref:`GIMode<enum_GeometryInstance3D_GIMode>`\ )
|
||||
- :ref:`GIMode<enum_GeometryInstance3D_GIMode>` **get_gi_mode**\ (\ )
|
||||
|
||||
The global illumination mode to use for the whole geometry. To avoid inconsistent results, use a mode that matches the purpose of the mesh during gameplay (static/dynamic).
|
||||
|
||||
@@ -359,8 +359,8 @@ The global illumination mode to use for the whole geometry. To avoid inconsisten
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_ignore_occlusion_culling** **(** :ref:`bool<class_bool>` value **)**
|
||||
- :ref:`bool<class_bool>` **is_ignoring_occlusion_culling** **(** **)**
|
||||
- |void| **set_ignore_occlusion_culling**\ (\ value\: :ref:`bool<class_bool>`\ )
|
||||
- :ref:`bool<class_bool>` **is_ignoring_occlusion_culling**\ (\ )
|
||||
|
||||
If ``true``, disables occlusion culling for this instance. Useful for gizmos that must be rendered even when occlusion culling is in use.
|
||||
|
||||
@@ -378,8 +378,8 @@ If ``true``, disables occlusion culling for this instance. Useful for gizmos tha
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_lod_bias** **(** :ref:`float<class_float>` value **)**
|
||||
- :ref:`float<class_float>` **get_lod_bias** **(** **)**
|
||||
- |void| **set_lod_bias**\ (\ value\: :ref:`float<class_float>`\ )
|
||||
- :ref:`float<class_float>` **get_lod_bias**\ (\ )
|
||||
|
||||
Changes how quickly the mesh transitions to a lower level of detail. A value of 0 will force the mesh to its lowest level of detail, a value of 1 will use the default settings, and larger values will keep the mesh in a higher level of detail at farther distances.
|
||||
|
||||
@@ -397,8 +397,8 @@ Useful for testing level of detail transitions in the editor.
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_material_overlay** **(** :ref:`Material<class_Material>` value **)**
|
||||
- :ref:`Material<class_Material>` **get_material_overlay** **(** **)**
|
||||
- |void| **set_material_overlay**\ (\ value\: :ref:`Material<class_Material>`\ )
|
||||
- :ref:`Material<class_Material>` **get_material_overlay**\ (\ )
|
||||
|
||||
The material overlay for the whole geometry.
|
||||
|
||||
@@ -416,8 +416,8 @@ If a material is assigned to this property, it will be rendered on top of any ot
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_material_override** **(** :ref:`Material<class_Material>` value **)**
|
||||
- :ref:`Material<class_Material>` **get_material_override** **(** **)**
|
||||
- |void| **set_material_override**\ (\ value\: :ref:`Material<class_Material>`\ )
|
||||
- :ref:`Material<class_Material>` **get_material_override**\ (\ )
|
||||
|
||||
The material override for the whole geometry.
|
||||
|
||||
@@ -435,8 +435,8 @@ If a material is assigned to this property, it will be used instead of any mater
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_transparency** **(** :ref:`float<class_float>` value **)**
|
||||
- :ref:`float<class_float>` **get_transparency** **(** **)**
|
||||
- |void| **set_transparency**\ (\ value\: :ref:`float<class_float>`\ )
|
||||
- :ref:`float<class_float>` **get_transparency**\ (\ )
|
||||
|
||||
The transparency applied to the whole geometry (as a multiplier of the materials' existing transparency). ``0.0`` is fully opaque, while ``1.0`` is fully transparent. Values greater than ``0.0`` (exclusive) will force the geometry's materials to go through the transparent pipeline, which is slower to render and can exhibit rendering issues due to incorrect transparency sorting. However, unlike using a transparent material, setting :ref:`transparency<class_GeometryInstance3D_property_transparency>` to a value greater than ``0.0`` (exclusive) will *not* disable shadow rendering.
|
||||
|
||||
@@ -456,8 +456,8 @@ In spatial shaders, ``1.0 - transparency`` is set as the default value of the ``
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_visibility_range_begin** **(** :ref:`float<class_float>` value **)**
|
||||
- :ref:`float<class_float>` **get_visibility_range_begin** **(** **)**
|
||||
- |void| **set_visibility_range_begin**\ (\ value\: :ref:`float<class_float>`\ )
|
||||
- :ref:`float<class_float>` **get_visibility_range_begin**\ (\ )
|
||||
|
||||
Starting distance from which the GeometryInstance3D will be visible, taking :ref:`visibility_range_begin_margin<class_GeometryInstance3D_property_visibility_range_begin_margin>` into account as well. The default value of 0 is used to disable the range check.
|
||||
|
||||
@@ -473,8 +473,8 @@ Starting distance from which the GeometryInstance3D will be visible, taking :ref
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_visibility_range_begin_margin** **(** :ref:`float<class_float>` value **)**
|
||||
- :ref:`float<class_float>` **get_visibility_range_begin_margin** **(** **)**
|
||||
- |void| **set_visibility_range_begin_margin**\ (\ value\: :ref:`float<class_float>`\ )
|
||||
- :ref:`float<class_float>` **get_visibility_range_begin_margin**\ (\ )
|
||||
|
||||
Margin for the :ref:`visibility_range_begin<class_GeometryInstance3D_property_visibility_range_begin>` threshold. The GeometryInstance3D will only change its visibility state when it goes over or under the :ref:`visibility_range_begin<class_GeometryInstance3D_property_visibility_range_begin>` threshold by this amount.
|
||||
|
||||
@@ -492,8 +492,8 @@ If :ref:`visibility_range_fade_mode<class_GeometryInstance3D_property_visibility
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_visibility_range_end** **(** :ref:`float<class_float>` value **)**
|
||||
- :ref:`float<class_float>` **get_visibility_range_end** **(** **)**
|
||||
- |void| **set_visibility_range_end**\ (\ value\: :ref:`float<class_float>`\ )
|
||||
- :ref:`float<class_float>` **get_visibility_range_end**\ (\ )
|
||||
|
||||
Distance from which the GeometryInstance3D will be hidden, taking :ref:`visibility_range_end_margin<class_GeometryInstance3D_property_visibility_range_end_margin>` into account as well. The default value of 0 is used to disable the range check.
|
||||
|
||||
@@ -509,8 +509,8 @@ Distance from which the GeometryInstance3D will be hidden, taking :ref:`visibili
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_visibility_range_end_margin** **(** :ref:`float<class_float>` value **)**
|
||||
- :ref:`float<class_float>` **get_visibility_range_end_margin** **(** **)**
|
||||
- |void| **set_visibility_range_end_margin**\ (\ value\: :ref:`float<class_float>`\ )
|
||||
- :ref:`float<class_float>` **get_visibility_range_end_margin**\ (\ )
|
||||
|
||||
Margin for the :ref:`visibility_range_end<class_GeometryInstance3D_property_visibility_range_end>` threshold. The GeometryInstance3D will only change its visibility state when it goes over or under the :ref:`visibility_range_end<class_GeometryInstance3D_property_visibility_range_end>` threshold by this amount.
|
||||
|
||||
@@ -528,8 +528,8 @@ If :ref:`visibility_range_fade_mode<class_GeometryInstance3D_property_visibility
|
||||
|
||||
.. rst-class:: classref-property-setget
|
||||
|
||||
- void **set_visibility_range_fade_mode** **(** :ref:`VisibilityRangeFadeMode<enum_GeometryInstance3D_VisibilityRangeFadeMode>` value **)**
|
||||
- :ref:`VisibilityRangeFadeMode<enum_GeometryInstance3D_VisibilityRangeFadeMode>` **get_visibility_range_fade_mode** **(** **)**
|
||||
- |void| **set_visibility_range_fade_mode**\ (\ value\: :ref:`VisibilityRangeFadeMode<enum_GeometryInstance3D_VisibilityRangeFadeMode>`\ )
|
||||
- :ref:`VisibilityRangeFadeMode<enum_GeometryInstance3D_VisibilityRangeFadeMode>` **get_visibility_range_fade_mode**\ (\ )
|
||||
|
||||
Controls which instances will be faded when approaching the limits of the visibility range. See :ref:`VisibilityRangeFadeMode<enum_GeometryInstance3D_VisibilityRangeFadeMode>` for possible values.
|
||||
|
||||
@@ -546,7 +546,7 @@ Method Descriptions
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
:ref:`Variant<class_Variant>` **get_instance_shader_parameter** **(** :ref:`StringName<class_StringName>` name **)** |const|
|
||||
:ref:`Variant<class_Variant>` **get_instance_shader_parameter**\ (\ name\: :ref:`StringName<class_StringName>`\ ) |const|
|
||||
|
||||
Get the value of a shader parameter as set on this instance.
|
||||
|
||||
@@ -558,7 +558,7 @@ Get the value of a shader parameter as set on this instance.
|
||||
|
||||
.. rst-class:: classref-method
|
||||
|
||||
void **set_instance_shader_parameter** **(** :ref:`StringName<class_StringName>` name, :ref:`Variant<class_Variant>` value **)**
|
||||
|void| **set_instance_shader_parameter**\ (\ name\: :ref:`StringName<class_StringName>`, value\: :ref:`Variant<class_Variant>`\ )
|
||||
|
||||
Set the value of a shader uniform for this instance only (`per-instance uniform <../tutorials/shaders/shader_reference/shading_language.html#per-instance-uniforms>`__). See also :ref:`ShaderMaterial.set_shader_parameter<class_ShaderMaterial_method_set_shader_parameter>` to assign a uniform on all instances using the same :ref:`ShaderMaterial<class_ShaderMaterial>`.
|
||||
|
||||
@@ -575,3 +575,4 @@ Set the value of a shader uniform for this instance only (`per-instance uniform
|
||||
.. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
|
||||
.. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
|
||||
.. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
|
||||
.. |void| replace:: :abbr:`void (No return value.)`
|
||||
|
||||
Reference in New Issue
Block a user