From 184b5ae536830e8e9ea1b8e15ae2042e92ab8f49 Mon Sep 17 00:00:00 2001 From: TwistedTwigleg Date: Sun, 26 Nov 2017 11:12:25 -0500 Subject: Added documentation for GeometryInstance and VisualInstance --- doc/classes/GeometryInstance.xml | 18 ++++++++++++++++++ doc/classes/VisualInstance.xml | 7 +++++++ 2 files changed, 25 insertions(+) (limited to 'doc') diff --git a/doc/classes/GeometryInstance.xml b/doc/classes/GeometryInstance.xml index 93db093c8b..981873b1fe 100644 --- a/doc/classes/GeometryInstance.xml +++ b/doc/classes/GeometryInstance.xml @@ -14,32 +14,50 @@ + The selected shadow casting flag. See SHADOW_CASTING_SETTING_* constants for values. + The extra distance added to the GeometryInstance's bounding box ([AABB]) to increase its cull box. + The GeometryInstance's max LOD distance. + The GeometryInstance's max LOD margin. + The GeometryInstance's min LOD distance. + The GeometryInstance's min LOD margin. + The material override for the whole geometry. + If there is a material in material_override, it will be used instead of any material set in any material slot of the mesh. + If [code]true[/code] this GeometryInstance will be used when baking lights using a [GIProbe] and/or any other form of baked lighting. + Will not cast any shadows. + Will cast shadows from all visible faces in the GeometryInstance. + Will take culling into account, so faces not being rendered will not be taken into account when shadow casting. + Will cast shadows from all visible faces in the GeometryInstance. + Will not take culling into account, so all faces will be taken into account when shadow casting. + Will only show the shadows casted from this object. + In other words: The actual mesh will not be visible, only the shadows casted from the mesh. + Will allow the GeometryInstance to be used when baking lights using a [GIProbe] and/or any other form of baked lighting. + Added documentation for GeometryInstance and VisualInstance diff --git a/doc/classes/VisualInstance.xml b/doc/classes/VisualInstance.xml index 2c9fe4f43e..bd66880719 100644 --- a/doc/classes/VisualInstance.xml +++ b/doc/classes/VisualInstance.xml @@ -13,12 +13,15 @@ + Returns the [AABB] (also known as the bounding box) for this VisualInstance. + Returns the transformed [AABB] (also known as the bounding box) for this VisualInstance. + Transformed in this case means the [AABB] plus the position, rotation, and scale of the [Spatial]s [Transform] @@ -27,11 +30,15 @@ + Sets the base of the VisualInstance, which changes how the engine handles the VisualInstance under the hood. + It is recommended to only use set_base if you know what you're doing. + The render layer(s) this VisualInstance is drawn on. + This object will only be visible for [Camera]s whose cull mask includes the render object this VisualInstance is set to. -- cgit v1.2.3