fragment shader
常見例句
- Inorder to program Cg vertex and fragment shaders, it is important to understandthe input and ouput of each shader.
為了對(duì)頂點(diǎn)和片段著色器進(jìn)行編程,理解每個(gè)著色器的輸入和輸出是很重要的。 - 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.
片段著色器的輸出結(jié)果是深度值、 模板值和即將寫入顏色緩存的顏色值。 - 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.
當(dāng)你只需要將圖元的深度信息寫入深度緩存時(shí)(例如在施展遮擋查詢測(cè)試時(shí)),不使用片段著色器的渲染過程就很有用。 返回 fragment shader