danielepanozzo / cg-old

44 stars 16 forks source link

Assignment 3 About the Clicking #37

Closed tomhsu1990 closed 7 years ago

tomhsu1990 commented 7 years ago

Hi, I have a question about clicking the object. Since we need to do all transformations in the shader, when we are going to implement the clicking operation, we are also not allowed to do the transformation. Is it possible to let the shader output the clicked object?

Thanks.

danielepanozzo commented 7 years ago

For the picking, you can do the inverse transformations on the CPU side. It is mandatory to do the transformations in the shaders only for the rendering.