Question: Question about Depth Shader If d is the fragment depth in the NDCS , what output colour below from the fragment shader will cause a

Question about Depth Shader
If d is the fragment depth in the NDCS, what output colour below from the fragment shader will cause a fragment at the near clipping plane to be white and a fragment at the far clipping plane to be black?
vec4(d,d,d,1)
vec(1-d,1-d,1-d,1)
vec4(0.5(d+1),0.5(d+1),0.5(d+1),1)
vec4(0.5(1-d),0.5(1-d),0.5(1-d),1)
 Question about Depth Shader If d is the fragment depth in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!