Hi all,
I'm trying to make my first fragment shader which I want to highlight sharp edges of my model. I have done this by assigning an alpha value to every vertex in the uv channel based on how sharp that vertex is. However, in my fragment shader this looks very unsmooth as seen in the picture. I'm currently just assigning my alpha values to the alpha channel of my shaders color in the fragment portion of the shader. Is there a better way to do this which will make it smoother?...
Fragment Shader Alpha gradient looks pixelated
I'm trying to make my first fragment shader which I want to highlight sharp edges of my model. I have done this by assigning an alpha value to every vertex in the uv channel based on how sharp that vertex is. However, in my fragment shader this looks very unsmooth as seen in the picture. I'm currently just assigning my alpha values to the alpha channel of my shaders color in the fragment portion of the shader. Is there a better way to do this which will make it smoother?...
Fragment Shader Alpha gradient looks pixelated