Use a 3D texture in a shader
Preview a 3D texture
To preview a 3D texture, do one of the following:
- Use the InspectorA Unity window that displays information about the currently selected GameObject, asset or project settings, allowing you to inspect and edit the values. More info
See in Glossary window.
- Draw the 3D texture in the SceneA Scene contains the environments and menus of your game. Think of each unique Scene file as a unique level. In each Scene, you place your environments, obstacles, and decorations, essentially designing and building your game in pieces. More info
See in Glossary view.
Use the Inspector window
To preview a 3D texture, select the texture in the Project window. In the Inspector window, Unity displays the preview of the texture at the bottom of the Texture Import Settings window.
There are three different 3D texture preview modes available:
-
Volume mode displays the 3D texture as a translucent cube. Click and drag the cube to rotate the preview.
-
Slice mode displays a 2D slice of each of the three axes of the 3D texture. Use the X, Y and Z sliders to select the slices to preview.
-
SDF mode displays the 3D texture as a signed distance field (SDF) in 3D space.
Refer to 3D texture preview reference for more information.
Draw the 3D texture in the Scene view
Use the Handles
API to draw the 3D texture in the Scene viewAn interactive view into the world you are creating. You use the Scene View to select and position scenery, characters, cameras, lights, and all other types of Game Object. More info
See in Glossary. The Handles
API lets you use custom gradients and configure how you draw the texture.
Refer to the following for more information:
Use a 3D texture in a shader
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。