Got a little issue with a tool im making, Im trying to draw a grid over the viewport in the pixel shader, But the resulting grid looks patchy.
The problem is that each line isnt the same width and this looks odd. The code I use to determine the pixel colour is below
Anyone any advice on how to make this look a lil better.
if( (i.TexCoord0.x >= (1.0f/16.0f) && ( i.TexCoord0.x % (1.0f/16.0f) ) < 0.002) || (i.TexCoord0.y >= (1.0f/16.0f) && ( i.TexCoord0.y % (1.0f/16.0f) ) < 0.002) ){ o.Colour = float4(0.0f, 0.0f, 1.0f, 0.0f);}else{ o.Colour = float4(1.0f, 1.0f, 1.0f, 0.0f);}