From 5643bc71f793fdf91dd82f0656fd65d1c3976222 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Tue, 4 Feb 2020 12:25:02 -0800 Subject: Finish documenting BakedLightmap and TextureLayered --- doc/classes/BakedLightmap.xml | 7 ++++++- doc/classes/TextureLayered.xml | 16 +++++++++++++++- 2 files changed, 21 insertions(+), 2 deletions(-) (limited to 'doc/classes') diff --git a/doc/classes/BakedLightmap.xml b/doc/classes/BakedLightmap.xml index a76aea510a..587ff7f304 100644 --- a/doc/classes/BakedLightmap.xml +++ b/doc/classes/BakedLightmap.xml @@ -18,7 +18,7 @@ - Bakes the lightmaps within the currently edited scene. + Bakes the lightmaps within the currently edited scene. Returns a [enum BakeError] to signify if the bake was successful, or if unsuccessful, how the bake failed. @@ -81,14 +81,19 @@ More precise bake mode but can take considerably longer to bake. + Baking was successful. + Returns if no viable save path is found. This can happen where an [member image_path] is not specified or when the save location is invalid. + Currently unused. + Returns when the baker cannot save per-mesh textures to file. + Returns if user cancels baking. diff --git a/doc/classes/TextureLayered.xml b/doc/classes/TextureLayered.xml index d9a806bcc2..f20f46b6c4 100644 --- a/doc/classes/TextureLayered.xml +++ b/doc/classes/TextureLayered.xml @@ -4,7 +4,7 @@ Base class for 3D texture types. - Base class for [Texture3D] and [TextureArray]. Cannot be used directly. + Base class for [Texture3D] and [TextureArray]. Cannot be used directly, but contains all the functions necessary for accessing and using [Texture3D] and [TextureArray]. Data is set on a per-layer basis. For [Texture3D]s, the layer sepcifies the depth or Z-index, they can be treated as a bunch of 2D slices. Similarly, for [TextureArray]s, the layer specifies the array layer. @@ -23,24 +23,28 @@ + Creates the [Texture3D] or [TextureArray] with specified [code]width[/code], [code]height[/code], and [code]depth[/code]. See [enum Image.Format] for [code]format[/code] options. See [enum Flags] enumerator for [code]flags[/code] options. + Returns the depth of the texture. Depth is the 3rd dimension (typically Z-axis). + Returns the current format being used by this texture. See [enum Image.Format] for details. + Returns the height of the texture. Height is typically represented by the Y-axis. @@ -49,12 +53,14 @@ + Returns an [Image] resource with the data from specified [code]layer[/code]. + Returns the width of the texture. Width is typically represented by the X-axis. @@ -71,6 +77,7 @@ + Partially sets the data for a specified [code]layer[/code] by overwriting using the data of the specified [code]image[/code]. [code]x_offset[/code] and [code]y_offset[/code] determine where the [Image] is "stamped" over the texture. The [code]image[/code] must fit within the texture. @@ -81,23 +88,30 @@ + Sets the data for the specified layer. Data takes the form of a 2-dimensional [Image] resource. + Returns a dictionary with all the data used by this texture. + Specifies which [enum Flags] apply to this texture. + Texture will generate mipmaps on creation. + Texture will repeat when UV used is outside the 0-1 range. + Use filtering when reading from texture. Filtering smooths out pixels. Turning filtering off is slightly faster and more appropriate when you need access to individual pixels. + Equivalent to [constant FLAG_FILTER]. -- cgit v1.2.3