常見例句雙語例句Inorder to program Cg vertex and fragment shaders, it is important to understandthe input and ouput of each shader.爲了對頂點和片段著色器進行編程,理解每個著色器的輸入和輸出是很重要的。The output from a fragment shader is a list of colors for each of the color buffers being written to, a depth value, and a stencil value.片段著色器的輸出結果是深度值、 模板值和即將寫入顔色緩存的顔色值。Rendering without a fragment shader is useful when rendering only a primitive's default depth information to the depth buffer, such as when performing Occlusion Query tests.儅你衹需要將圖元的深度信息寫入深度緩存時(例如在施展遮擋查詢測試時),不使用片段著色器的渲染過程就很有用。 返回 fragment shader