Render bezier curves using distance fields
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ picToLTree mx (PolygonCol i vs)
|
||||
picToLTree mx (BezierQuad i vs)
|
||||
= filtB mx i $ LLeaf $ RenderBezQ $ zip3 (map zeroZ ps) cols rs
|
||||
where (ps,cols,offps,rads) = unzip4 vs
|
||||
rs = zipWith (\(x,y) z -> (x,y,z)) offps rads
|
||||
rs = zipWith (\(x,y) (z,w) -> (x,y,z,w)) offps rads
|
||||
|
||||
picToLTree mx (Circle i colC colE r)
|
||||
= filtB mx i $ LLeaf $ RenderEllipse [( (-r, r,0), colC)
|
||||
|
||||
Reference in New Issue
Block a user