用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:classes:gl:gl.clearwithskybox

GL.ClearWithSkybox 清除天空盒缓存

JavaScript ⇒ public static function ClearWithSkybox(clearDepth: bool, camera: Camera): void;
C# ⇒ public static void ClearWithSkybox(bool clearDepth, Camera camera);

Parameters 参数

clearDepthShould the depth buffer be cleared?\\是否清除深度缓冲区?
cameraCamera to get projection parameters and skybox from.\\从相机获得投影参数和天空盒。

Description 描述

Clear the current render buffer with camera's skybox.

用当前带有相机的天空盒清除渲染缓存。

This draws skybox into the screen or the active RenderTexture. If the passed camera does not have custom Skybox component, the global skybox from RenderSettings will be used.

用相机的天空盒或激活的渲染纹理清除缓存。如何用camera没有天空盒,将用RenderSettings中的天空盒。

See Also: GL.Clear.

GL

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