Allow tweaking z buffer when rendering polygon, improve explosion render
This commit is contained in:
@@ -43,7 +43,7 @@ wedgeOfThickness t x y
|
||||
n a b = (t*0.5) *.* errorNormalizeV 4200 (vNormal (a -.- b))
|
||||
|
||||
verticalPipe :: Float -> Color -> Point2 -> Float -> Float -> Picture
|
||||
verticalPipe w col (xx,xy) za zb = pictures $ map (poly3D . f) ps
|
||||
verticalPipe w col (xx,xy) za zb = pictures $ map (poly3Col . f) ps
|
||||
where
|
||||
x = (xx,xy,0)
|
||||
xs = map (\(a,b) -> x +.+.+ (a,b,za)) [(w,0),(0,w),(-w,0),(0,-w)]
|
||||
|
||||
Reference in New Issue
Block a user