0.2.0-dev Download ZIP
27 lines ·1.5 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="CompressedTexture3D" 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, optionally compressed. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | [CompressedTexture3D] is the VRAM-compressed counterpart of [ImageTexture3D]. The file extension for [CompressedTexture3D] files is [code].ctex3d[/code]. This file format is internal to Godot; it is created by importing other image formats with the import system. |
| 8 | [CompressedTexture3D] uses VRAM compression, which allows to reduce memory usage on the GPU when rendering the texture. This also improves loading times, as VRAM-compressed textures are faster to load compared to textures using lossless compression. VRAM compression can exhibit noticeable artifacts and is intended to be used for 3D rendering, not 2D. |
| 9 | See [Texture3D] for a general description of 3D textures. |
| 10 | </description> |
| 11 | <tutorials> |
| 12 | </tutorials> |
| 13 | <methods> |
| 14 | <method name="load"> |
| 15 | <return type="int" enum="Error" /> |
| 16 | <param index="0" name="path" type="String" /> |
| 17 | <description> |
| 18 | Loads the texture from the specified [param path]. |
| 19 | </description> |
| 20 | </method> |
| 21 | </methods> |
| 22 | <members> |
| 23 | <member name="load_path" type="String" setter="load" getter="get_load_path" default=""""> |
| 24 | The [CompressedTexture3D]'s file path to a [code].ctex3d[/code] file. |
| 25 | </member> |
| 26 | </members> |
| 27 | </class> |