RenderTexture.isPowerOfTwo 是否2的乘方

var isPowerOfTwo : bool

Description描述

Is the size of the render texture constrained to power of two sizes?

渲染纹理是否包含2的乘方大小?

When creating image post-processing effects, you should always set this to false because that allows matching the RenderTexture size to arbitrary screen size.

当创建一个后期处理效果图像时,你应该总是设置这个为false,因为允许匹配RenderTexture大小到任意屏幕大小。

When using the RenderTexture for regular materials and shaders you should always set this to true because that allows using a RenderTexture just like any ordinary texture.

当使用RenderTexture用于常规材质和着色器时,总是设置这个为true,因为允许使用RenderTexture就像任何普通的纹理。

Page last updated: 2011-3-15
RenderTexture.isPowerOfTwo 是否2的乘方_unity3d游戏脚本制作教程-游戏蛮牛出品

RenderTexture.isPowerOfTwo 是否2的乘方

var isPowerOfTwo : bool

Description描述

Is the size of the render texture constrained to power of two sizes?

渲染纹理是否包含2的乘方大小?

When creating image post-processing effects, you should always set this to false because that allows matching the RenderTexture size to arbitrary screen size.

当创建一个后期处理效果图像时,你应该总是设置这个为false,因为允许匹配RenderTexture大小到任意屏幕大小。

When using the RenderTexture for regular materials and shaders you should always set this to true because that allows using a RenderTexture just like any ordinary texture.

当使用RenderTexture用于常规材质和着色器时,总是设置这个为true,因为允许使用RenderTexture就像任何普通的纹理。

Page last updated: 2011-3-15