Texture.SetStreamingTextureMaterialDebugProperties

切换到手册
public static void SetStreamingTextureMaterialDebugProperties ();

描述

使用设置为串流 Mipmap 的纹理将其他调试信息上传到材质。

这将为使用串流纹理的所有材质设置调试着色器常量。这将设置一个名为 MainTex_mipInfo 的常量,其中包含以下 4 个值:质量设置最低串流 Mip 级别 (Quality Settings Min Streaming Mip Level)、纹理原始 Mipmap 计数 (Texture Original Mip map Count)、所需的串流 Mip 级别 (Desired Streaming Mip Level)、加载的 Mip 级别 (Loaded Mip Level)。

Camera.SetReplacementShader 可用于为摄像机设置自定义着色器以渲染调试信息。


Did you find this page useful? Please give it a rating: