logo

Crowdly

When you click on the canvas of a WebGL application, window coordinates are retu...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

When you click on the canvas of a WebGL application, window coordinates are returned. We need to convert these window coordinates to clip coordinates in the application. According to the following specification, what is the conversion equation for the x coordinate?

(0, h) --> (-1, -1)

(w, 0) --> (1, 1)

xw, yw

:

Window coordinates

x, y:

Clip coordinates

x = axw + b

y = cyw + d

quiz image 

More questions like this

Want instant access to all verified answers on learn.twu.ca?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!