1
\$\begingroup\$

Problem example

This is the problem I have. I have created a shader that draws circle. But depending on the distance from the camera thickness changes.

Circle Shader

Is it possible to keep thickness constant?

\$\endgroup\$
7
  • 1
    \$\begingroup\$ Did you check out previous questions about using shaders to draw circles? \$\endgroup\$ Commented Jan 26, 2019 at 17:58
  • \$\begingroup\$ @DMGregory I had a look at them but I am not good with HLSL or GLSL. While I can copy paste some things, I am better at shader graph. I will definitely research more, but for Global Game Jam I don't have too much time to spare. Thanks. \$\endgroup\$ Commented Jan 26, 2019 at 22:20
  • 1
    \$\begingroup\$ To use the trick in my answer there in a graph, you'll need the DDX / DDY nodes described here. The technique should translate pretty directly. :) \$\endgroup\$ Commented Jan 26, 2019 at 22:23
  • \$\begingroup\$ @DMGregory Thank you in pointing me in the right direction. I will definitely try to replicate it in Shader Graph and post about my success here. \$\endgroup\$ Commented Jan 27, 2019 at 11:01
  • \$\begingroup\$ Right now I am using Shapes plugin from Freya, works pretty well. It's definitely possible to do it yourself, but requires a lot of knowledge. \$\endgroup\$ Commented Jan 7, 2022 at 0:29

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.