Lines Matching refs:fragment
183 // Create a fragment shader.
569 …pth, and stencil value. Each fragment is processed by a fragment shader, which also determines whe…
570 - A fragment shader runs on each fragment. In this example, it is used to calculate the final color…
577 out vec4 FragColor; // Color of the output fragment.
580 // Set the color of each fragment to vec4(1.0f, 0.5f, 0.2f, 1.0f),
605 …tion is performed on these attributes in the rasterization phase to generate fragment (pixel) data.
609 …e fragment data output by rasterization is used as the input variable of the fragment shader. The …
611 - Lighting calculation: calculates the lighting effect of a fragment.
617 5. Fragment-by-fragment processing
619 The output of the fragment shader is then undergone fragment-by-fragment processing as follows:
621 … - Pixel ownership test: determines whether the fragment belongs to the current pixel area to draw.
623 - Scissor test: determines whether the fragment is in the visible area.
627 - Depth-buffer test: compares the depth values of the fragment to determine whether it visible.
635 …After all the preceding tests and processing, the final fragment data is written into the frame bu…
646 // Create a fragment shader.
664 …ate, which can be **GL_VERTEX_SHADER** (vertex shader) or **GL_FRAGMENT_SHADER** (fragment shader).