用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:texture3d:texture3d

Texture3D 3D纹理

class in UnityEngine/Inherits from: Texture

Description 描述

Class for handling 3D Textures, Use this to create 3D texture assets.

处理3D纹理的类,使用该类创建3D纹理资源。

3D textures are commonly used as lookup tables by shaders, or to represent volumetric data.

3D 纹理常用作为查找着色器的表格,或代表体积数据。

Typically you'd create a 3D texture, fill it up with data (SetPixels or SetPixels32) and call Apply to upload the data to the GPU.

通常会创建一个3D纹理,装满数据(SetPixels 或 SetPixels32)和调用Apply将数据上传到GPU。

Variables 变量

depthThe depth of the texture (Read Only).
纹理的深度(只读)。
formatThe format of the pixel data in the texture (Read Only).
纹理中的像素数据的格式(只读)。

Constructors 构造

Texture3DCreate a new empty 3D Texture.
创建空的3D纹理贴图。

Public Functions 公共函数

ApplyActually apply all previous SetPixels changes.
实际上应用所有之前的变更。
GetPixelsReturns an array of pixel colors representing one mip level of the 3D texture.
返回3D纹理的mip等级代表的像素颜色的数组。
GetPixels32Returns an array of pixel colors representing one mip level of the 3D texture.
返回3D纹理贴图的mip级别代表的像素颜色数组。
SetPixelsSets pixel colors of a 3D texture.
设置3D贴图的像素颜色。
SetPixels32Sets pixel colors of a 3D texture.
设置3D贴图的像素颜色。
script/unityengine/classes/texture3d/texture3d.txt · 最后更改: 2016/08/02 05:30 (外部编辑)