1. A method for generating a final value for a pixel, whose shader program includes mip mapped textured fetches from within a conditional statement, the method comprising: in response to an IF_NEIGHBOR conditional statement, generating a compiled block of shader instructions that cause a shader to: determine whether a current pixel meets a first condition of the IF_NEIGHBOR conditional statement or one of the pixels neighboring the current pixel meets the first condition of the IF_NEIGHBOR conditional statement whose body includes mip mapped texture fetch instructions; and if so, execute the compiled body of the IF_NEIGHBOR conditional statement for the current pixel including the mip map texture fetch instruction.