To draw ellipses in my application i use the following HLSL-code:
[source lang="csharp"]void PixelMainFill(in PixelShaderInput input, out float4 color : COLOR0){ float elemX = (-elementSize.x / 2.0f) + elementSize.x * input.texCoord.x; float elemY = (-elementSize.y / 2.0f) + elementSize.y * input.texCoord.y; float radius = getEllipseRadius(elemX, elemY); float radiusCoord = sqrt(elemX * elemX + elemY * elemY); if(radiusCoord <= radius) color = input.color; else color = float4(0, 0, 0, 0);}[/source]
While the ellipse really is an ellipse with this code i have a problem that it looks absolutely blocky as with no multisampling even though i have eight samples and a quality of two.
Is there a way to have multisampling applied to my ellipse?
Greetings
Plerion
Edited by Plerion, 12 October 2012 - 08:13 AM.








