Commit 46eb78f3 authored by Frédéric Larue's avatar Frédéric Larue

Selection by the disk tool made continuous.

parent a75b2d56
......@@ -69,7 +69,7 @@ std::string SelectionToolDisk::getSelectionShaderFunctions()
"{"
" vec2 toCenter = clipCoordVertex.xy*u_DiskRadiusInv - u_DiskCenter;"
" float distAlongAxis = dot( toCenter, u_DiskAxis );"
" _toBrushCenter = /*max( min(distAlongAxis,u_DiskAxisLen), 0.0 )*u_DiskAxis*/ - toCenter;"
" _toBrushCenter = max( min(distAlongAxis,u_DiskAxisLen), 0.0 )*u_DiskAxis - toCenter;"
" _squareDistanceToBrush = dot( _toBrushCenter, _toBrushCenter );"
" return _squareDistanceToBrush <= 1.0;"
"}";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment