在说流程之前, 有必要先看一下N3的Frame子系统: 每帧的渲染过程都写进了配置文件, 默认使用的是"frame/win32/dx9default.xml", 阴影还有另外一套. <?xml version="1.0" encoding="UTF-8"?> <Nebula3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../schemas/frame.xsd"> <!-- Test frame shader for the Win32 platform. Renders a dedicated depth pass first, then renders the solid and alpha geometry to a (possibly multisampled) color buffer, and finally resolves the result through a post-effect into the backbuffer. --> <FrameShader name="DX9Default"> <!-- declare render targets --> <DeclareRenderTarget name="ColorBuffer" format="A8R8G8B8" depth=