Cube Texture cubic_texture

Source: Internet
Author: User
Cube Texture cubic_texture

Set the image used in the cube texture. Six independent images form six faces of a cube. If hardware supports this type of texture, it is often used in reflection maps or skyboxes. There are two formats. One is short format, and the image name is named in a special format. The other is more flexible and can be named at will, but the length is also longer.

Format 1 (Short format): Cubic_texture <base_name> <combineduvw | separateuv>

Images, and skybox_rt.jpg.

Format 2 (Long format): Cubic_texture <front> <back> <left> <right> <up> <down> separateuv

Format 2: each side is explicitly specified, in case that the name cannot be consistent. You can use format 2 with the separateuv parameter, because combineduvw requires a separate texture name assigned to the composite 3D texture (see below ).

In the two formats, the meaning of the last parameter is as follows:

Combineduvw
The six textures are combined in a cube texture ing using 3D texture coordinates with U, V, and W elements. Reflection ing is necessary because you never know which side you will need. Note that not all graphics cards support cube environment ing.
Separateuv
The six textures are separated and saved, but referenced by a texture layer. At any time, only one texture is active (in fact, they are saved as six images), so 2D UV coordinates are used. This type applies to skyboxes because only one side is rendered at a time and hardware is supported on older graphics cards.
Default: None

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.