diff options
author | 2016-06-05 23:50:44 +0200 | |
---|---|---|
committer | 2016-06-05 23:50:44 +0200 | |
commit | 6ea15072a718b093e3688d22f7f6954e44e383b6 (patch) | |
tree | b65e08cad8e07f8ce1f5f52f7e2438181cad158b /src/osd/modules/render/drawbgfx.cpp | |
parent | 396c2a094622e742e96ab3d16a72dfca4e498eaf (diff) |
Procedural texture for vectors in HLSL
* added simple procedural texture for vectors with rounded line ends and beam smoothness
* added optional -vector_beam_smooth option
* removed -antialias option, antialiasing is now always applied, except for plain D3D
Diffstat (limited to 'src/osd/modules/render/drawbgfx.cpp')
-rw-r--r-- | src/osd/modules/render/drawbgfx.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/osd/modules/render/drawbgfx.cpp b/src/osd/modules/render/drawbgfx.cpp index e0966fdbd62..dec0110157a 100644 --- a/src/osd/modules/render/drawbgfx.cpp +++ b/src/osd/modules/render/drawbgfx.cpp @@ -624,6 +624,13 @@ void renderer_bgfx::put_line(float x0, float y0, float x1, float y1, float r, UI dy *= d; } + // create diamond shape for points + else + { + // set distance to unit vector length (1,1) + dx = dy = 0.70710678f; + } + float nx = dy; float ny = -dx; float verts[4 * 3]; |