virtualx-engine/doc/classes/GIProbe.xml

63 lines
3.6 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8" ?>
<class name="GIProbe" inherits="VisualInstance3D" version="4.0">
<brief_description>
2020-01-23 07:12:52 +01:00
Real-time global illumination (GI) probe.
</brief_description>
<description>
2020-01-23 07:12:52 +01:00
[GIProbe]s are used to provide high-quality real-time indirect light to scenes. They precompute the effect of objects that emit light and the effect of static geometry to simulate the behavior of complex light in real-time. [GIProbe]s need to be baked before using, however, once baked, dynamic objects will receive light from them. Further, lights can be fully dynamic or baked.
Having [GIProbe]s in a scene can be expensive, the quality of the probe can be turned down in exchange for better performance in the [ProjectSettings] using [member ProjectSettings.rendering/global_illumination/gi_probes/quality].
</description>
<tutorials>
<link title="GI probes">https://docs.godotengine.org/en/latest/tutorials/3d/gi_probes.html</link>
<link title="Third Person Shooter Demo">https://godotengine.org/asset-library/asset/678</link>
</tutorials>
<methods>
<method name="bake">
<return type="void">
</return>
<argument index="0" name="from_node" type="Node" default="null">
</argument>
<argument index="1" name="create_visual_debug" type="bool" default="false">
</argument>
<description>
Bakes the effect from all [GeometryInstance3D]s marked with [constant GeometryInstance3D.GI_MODE_BAKED] and [Light3D]s marked with either [constant Light3D.BAKE_DYNAMIC] or [constant Light3D.BAKE_STATIC]. If [code]create_visual_debug[/code] is [code]true[/code], after baking the light, this will generate a [MultiMesh] that has a cube representing each solid cell with each cube colored to the cell's albedo color. This can be used to visualize the [GIProbe]'s data and debug any issues that may be occurring.
</description>
</method>
<method name="debug_bake">
<return type="void">
</return>
<description>
2020-01-23 07:12:52 +01:00
Calls [method bake] with [code]create_visual_debug[/code] enabled.
</description>
</method>
</methods>
<members>
2019-07-15 20:42:47 +02:00
<member name="data" type="GIProbeData" setter="set_probe_data" getter="get_probe_data">
2020-01-23 07:12:52 +01:00
The [GIProbeData] resource that holds the data for this [GIProbe].
</member>
<member name="extents" type="Vector3" setter="set_extents" getter="get_extents" default="Vector3( 10, 10, 10 )">
2020-01-23 07:12:52 +01:00
The size of the area covered by the [GIProbe]. If you make the extents larger without increasing the subdivisions with [member subdiv], the size of each cell will increase and result in lower detailed lighting.
</member>
<member name="subdiv" type="int" setter="set_subdiv" getter="get_subdiv" enum="GIProbe.Subdiv" default="1">
2020-01-23 07:12:52 +01:00
Number of times to subdivide the grid that the [GIProbe] operates on. A higher number results in finer detail and thus higher visual quality, while lower numbers result in better performance.
</member>
</members>
<constants>
2017-11-24 23:16:30 +01:00
<constant name="SUBDIV_64" value="0" enum="Subdiv">
2020-01-23 07:12:52 +01:00
Use 64 subdivisions. This is the lowest quality setting, but the fastest. Use it if you can, but especially use it on lower-end hardware.
</constant>
2017-11-24 23:16:30 +01:00
<constant name="SUBDIV_128" value="1" enum="Subdiv">
2020-01-23 07:12:52 +01:00
Use 128 subdivisions. This is the default quality setting.
</constant>
2017-11-24 23:16:30 +01:00
<constant name="SUBDIV_256" value="2" enum="Subdiv">
2020-01-23 07:12:52 +01:00
Use 256 subdivisions.
</constant>
2017-11-24 23:16:30 +01:00
<constant name="SUBDIV_512" value="3" enum="Subdiv">
2020-01-23 07:12:52 +01:00
Use 512 subdivisions. This is the highest quality setting, but the slowest. On lower-end hardware this could cause the GPU to stall.
</constant>
2017-11-24 23:16:30 +01:00
<constant name="SUBDIV_MAX" value="4" enum="Subdiv">
Represents the size of the [enum Subdiv] enum.
</constant>
</constants>
</class>