RenderTexture


https://docs.unity3d.com/Manual/class-RenderTexture.html


Size:

图片像素尺寸,这个size可以直接在脚本里通过width和height动态修改

Anti-Aliasing: 抗锯齿级别


Color Format:

记录shadowmapping相关的几种,不同格式之间就是存的数据量,精度不同

ARGB32模式

https://docs.unity3d.com/ScriptReference/RenderTextureFormat.ARGB32.html

Depth模式

https://docs.unity3d.com/ScriptReference/RenderTextureFormat.Depth.html

ShadowMapping模式

https://docs.unity3d.com/ScriptReference/RenderTextureFormat.Shadowmap.html


Depth Buffer

深度缓存,none不记录,或使用16bit,24bit记录

Wrap Mode

覆盖模式,repeat重复,clamp拉伸

Filter Mode

当texture被拉伸时的过滤方式

none,Bilinner线性,Trilinear(暂时理解成比线性效果更好就行)



Render Texture被拖到Camera的TargetTexture上就可以让Camera不向Render Texture输出,而不再向屏幕输出

运行后能在RenderTexture中看到渲染结果,停止运行RenderTexture结果也没有消失,停止运行后也可以选择ColorFormat并看到对应的效果,比如

ARGB32模式下渲染的Rendtexture



Depth模式





https://docs.unity3d.com/Manual/class-RenderTexture.html

转载于:https://www.cnblogs.com/nafio/p/9137196.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值