Home › Forums › PowerVR Insider Graphics › Will the fragments out of the rect defined by glScissor() be processed by Pixel Shader ?
Tagged: glscissor;3d pipeline
This topic contains 3 replies, has 2 voices, and was last updated by Chrishoo 3 years, 8 months ago.
HI all If I define a rect (x=0, y=0, w=300, h=300) using glScissor(), I want to know whether the clip operation executing before Pixel Shader or after it?
If a fragment represents the pixel(301, 301) on screen, it cannot be drawn on screen buffer surely. But I want to know if it is cut off before entering the Pixel Shader.
Thanks a lot! Chris
Sorry for “Pixel Shader” , I means “Fragments Shader”.
The scissor is applied before fragment shaders execute. The only fragments that will be shaded are those that fall within the bounds of the scissor region.
Thank you, Joe.