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
本文详细介绍了Unity中RenderTexture的使用方法及参数设置,包括图片像素尺寸、抗锯齿级别、颜色格式、深度缓存、覆盖模式和过滤方式等。通过实例展示了如何将RenderTexture应用于Camera目标纹理,实现渲染结果的保存和查看。
402

被折叠的 条评论
为什么被折叠?



