Version: 2020.1
How Streaming Virtual Texturing works
Using Streaming Virtual Texturing in Shader Graph

Enabling Streaming Virtual Texturing in your project

To enable Streaming Virtual Texturing, you need to enable Virtual Texturing in your project. To do this, go to Edit > Project Settings > Player and enable the Virtual Texturing setting.

Virtual Texturing is a project-wide setting that is shared for all platforms. You cannot build a player for platforms and graphics APIs that don’t support Virtual Texturing. Virtual Texturing can allocate resources such as buffers, even if you don’t use the feature in your project, so don’t enable Virtual Texturing if you don’t plan to use it.

When you enable Virtual Texturing in your project, Unity adds the following compiler directives:

  • ENABLE_VIRTUALTEXTURES: C# define that evaluates to True if your project supports Virtual Texturing.
  • ENABLE_VIRTUALTEXTURING: C++ and C# editor define that evaluates to True if Virtual Texturing is possible on the current build target.
  • UNITY_VIRTUAL_TEXTURING: ShaderA small script that contains the mathematical calculations and algorithms for calculating the Color of each pixel rendered, based on the lighting input and the Material configuration. More info
    See in Glossary
    version of ENABLE_VIRTUALTEXTURES.

Note that these might be renamed in future versions of Unity.

How Streaming Virtual Texturing works
Using Streaming Virtual Texturing in Shader Graph
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961