贴图与材质相关类

本文介绍了Unity中各种贴图类型及其使用方法,包括Texture2D、Texture3D、Cubemap等,并探讨了材质(Material)的概念及其实现方式。此外还涉及了贴图的高级技术如视差贴图和法线贴图。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

未完待续。。。。。。

也可以看看浅墨的那篇 real time rendering总结,

这里写的是贴图相关类,但是贴图的相关技术并不局限于此,例如视差贴图、法线贴图 等,贴图alpha值与alpha测试等

贴图和材质

Texture 基类

子类:RenderTexture、ProceduralTexture(过时)、SparseTexture、Texture2D、Texture3D、Cubemap、
MovieTexture(视频贴图)、

CustomRenderTexture 继承 RenderTexture


Material
MaterialPropertyBlock

ImageConversion(贴图的格式转换EXR、JPG、PNG,以及加载一个byte[]到一张贴图上)

ProceduralMaterial(这个也是材质,obslete)
ProceduralPropertyDescription
ProceduralTexture

RenderTargetSetup
RenderTexture
RenderTextureDescriptor

SparseTexture(贴图)
Texture
Texture2D(对应枚举 EXRFlags)
Texture2DArray
Texture3D

Cubemap
CubemapArray

MovieTexture(视频贴图)
CustomRenderTexture
CustomRenderTextureUpdateZone

ScalableBufferManager

Scales render textures to support dynamic resolution if the target platform/graphics API supports it.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值