用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:gl:gl.clear

GL.Clear 清除

JavaScript ⇒ public static function Clear(clearDepth: bool, clearColor: bool, backgroundColor: Color, depth: float = 1.0f): void;
C# ⇒ public static void Clear(bool clearDepth, bool clearColor, Color backgroundColor, float depth = 1.0f);

Parameters 参数

参数描述,换行请使用\\空格
clearDepthShould the depth buffer be cleared?
是否清除深度缓存?
clearColorShould the color buffer be cleared?
是否清除颜色缓存?
backgroundColorThe color to clear with, used only if clearColor is true.
用来清除背景色。第二个参数clearColor必须为true。
depthThe depth to clear Z buffer with, used only if clearDepth is true.
清楚Z buffer深度,第一个参数clearDepth必须为true

Description 描述

Clear the current render buffer.

清除当前的渲染缓存。

This clears the screen or the active RenderTexture you are drawing into. In most other situations, some camera is drawing something somewhere, and probably is clearing already with the background color of the skybox.

这将清除屏幕或你绘制的激活的RenderTexture。在多数情况下,相机绘制的一些东西,可能已经清除带有天空盒的背景颜色。

See Also: GL.ClearWithSkybox.

GL

script/unityengine/classes/gl/gl.clear.txt · 最后更改: 2016/08/02 05:24 (外部编辑)