zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    人人开源框架学习笔记
    Gitea安装笔记
    使用sdk方式获取微信的用户信息
    重写java类的equals()和hashCode方法
    Mysql 实现分页功能
    位运算应用和解析
    java代码POST方式请求SOAP
    java实现文件拷贝
    动态创建线程(多线程)处理大量数据
    ActiveMQ监听者接收信息
  • 原文地址:https://www.cnblogs.com/nafio/p/9137196.html
Copyright © 2011-2022 走看看