您的位置:首页 > 其它

RenderTexture

2017-01-03 14:40 381 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: