2
\$\begingroup\$

I need two things to draw in Modern OpenGL.

Please see the image: Selected spotlight in blender

  1. Draw lines to represent light's position and direction

  2. Draw xyz axises at the origin of a selected objects

How do I draw these? should I use fragment shader or what?

\$\endgroup\$
2
  • \$\begingroup\$ It looks like you're trying to implement selection and transformation gizmos — does previous Q&A on that topic give you some leads you can build on? \$\endgroup\$
    – DMGregory
    Feb 2, 2020 at 14:45
  • \$\begingroup\$ @DMGregory yes, that answers my second question, thank you! \$\endgroup\$
    – user133668
    Feb 2, 2020 at 15:26

0

You must log in to answer this question.