Previous | Next --- Slide 66 of 78
Back to Lecture Thumbnails
Lyynnn

Just wondering whether step 6 and step 7 can be switched? If we perform depth test(if enabled), then maybe we can save some time since we can skip sampling texture map for those points that fail the depth test? I'm not sure whether it works.

Gyro

Maybe right after the depth test we need to update the color buffer, which requires you to get the color first.

hteo

I think to compute the depth test you'd need to perform the same interpolation as you would need to obtain the color and u-v coordinates for the texture sampling. So yes you could save on some texture sampling but the savings probably aren't that huge when avoiding color computation.