diff --git a/doc/XMLreference.rst b/doc/XMLreference.rst index c2e47857..cad3e45c 100644 --- a/doc/XMLreference.rst +++ b/doc/XMLreference.rst @@ -1472,20 +1472,19 @@ still be specified here but this functionality is now deprecated and will be rem :el-prefix:`asset/` |-| **texture** (*) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +This element creates a texture asset, which is then referenced from a :ref:`material ` asset, which +is finally referenced from a model element that needs to be textured. - This element creates a texture asset, which is then referenced from a :ref:`material ` asset, which - is finally referenced from a model element that needs to be textured. +The texture data can be loaded from files or can be generated by the compiler as a procedural texture. Because +different texture types require different parameters, only a subset of the attributes below are used for any given +texture. Provisions are provided for loading cube and skybox textures from individual image files. - The texture data can be loaded from files or can be generated by the compiler as a procedural texture. Because - different texture types require different parameters, only a subset of the attributes below are used for any given - texture. Provisions are provided for loading cube and skybox textures from individual image files. +Currently, three file formats are supported for loading textures: PNG, KTX, and a custom MuJoCo texture format. The +loader will use the extension of the file name to determine which format to use, defaulting to the custom format if +the extension is not recognized. Alternatively, the content_type attribute can be used to specify the format +explicitly. Only ``image/png``, ``image/ktx``, or ``image/vnd.mujoco.texture`` are supported. - Currently, three file formats are supported for loading textures: PNG, KTX, and a custom MuJoCo texture format. The - loader will use the extension of the file name to determine which format to use, defaulting to the custom format if - the extension is not recognized. Alternatively, the content_type attribute can be used to specify the format - explicitly. Only ``image/png``, ``image/ktx``, or ``image/vnd.mujoco.texture`` are supported. - - The custom MuJoCo format is assumed to be a binary file containing the following data: +The custom MuJoCo format is assumed to be a binary file containing the following data: .. code:: Text