0.2.0-dev Download ZIP
33 lines ·1.8 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="ImageTexture3D" inherits="Texture3D" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Texture with 3 dimensions. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | [ImageTexture3D] is a 3-dimensional [ImageTexture] that has a width, height, and depth. See also [ImageTextureLayered]. |
| 8 | 3D textures are typically used to store density maps for [FogMaterial], color correction LUTs for [Environment], vector fields for [GPUParticlesAttractorVectorField3D] and collision maps for [GPUParticlesCollisionSDF3D]. 3D textures can also be used in custom shaders. |
| 9 | </description> |
| 10 | <tutorials> |
| 11 | </tutorials> |
| 12 | <methods> |
| 13 | <method name="create"> |
| 14 | <return type="int" enum="Error" /> |
| 15 | <param index="0" name="format" type="int" enum="Image.Format" /> |
| 16 | <param index="1" name="width" type="int" /> |
| 17 | <param index="2" name="height" type="int" /> |
| 18 | <param index="3" name="depth" type="int" /> |
| 19 | <param index="4" name="use_mipmaps" type="bool" /> |
| 20 | <param index="5" name="data" type="Image[]" /> |
| 21 | <description> |
| 22 | Creates the [ImageTexture3D] with specified [param format], [param width], [param height], and [param depth]. If [param use_mipmaps] is [code]true[/code], generates mipmaps for the [ImageTexture3D]. |
| 23 | </description> |
| 24 | </method> |
| 25 | <method name="update"> |
| 26 | <return type="void" /> |
| 27 | <param index="0" name="data" type="Image[]" /> |
| 28 | <description> |
| 29 | Replaces the texture's existing data with the layers specified in [param data]. The size of [param data] must match the parameters that were used for [method create]. In other words, the texture cannot be resized or have its format changed by calling [method update]. |
| 30 | </description> |
| 31 | </method> |
| 32 | </methods> |
| 33 | </class> |