Documentation ¶
Index ¶
- func Box(position, bounds vector3.Float64) sample.Vec3ToFloat
- func Intersect(fields ...sample.Vec3ToFloat) sample.Vec3ToFloat
- func Line(start, end vector3.Float64, radius float64) sample.Vec3ToFloat
- func Plane(position, normal vector3.Float64, height float64) sample.Vec3ToFloat
- func RoundedBox(position, bounds vector3.Float64, roundness float64) sample.Vec3ToFloat
- func RoundedCone(a, b vector3.Float64, r1, r2 float64) sample.Vec3ToFloat
- func RoundedCylinder(pos vector3.Float64, radius, topHeight, bodyHeight float64) sample.Vec3ToFloat
- func Sphere(position vector3.Float64, radius float64) sample.Vec3ToFloat
- func Subtract(base, subtraction sample.Vec3ToFloat) sample.Vec3ToFloat
- func Translate(field sample.Vec3ToFloat, translation vector3.Float64) sample.Vec3ToFloat
- func Union(fields ...sample.Vec3ToFloat) sample.Vec3ToFloat
- func VarryingThicknessLine(linePoints []LinePoint) sample.Vec3ToFloat
- type LinePoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Intersect ¶
func Intersect(fields ...sample.Vec3ToFloat) sample.Vec3ToFloat
func Plane ¶ added in v0.9.0
func Plane(position, normal vector3.Float64, height float64) sample.Vec3ToFloat
func RoundedBox ¶ added in v0.9.0
func RoundedBox(position, bounds vector3.Float64, roundness float64) sample.Vec3ToFloat
func RoundedCone ¶ added in v0.9.0
func RoundedCone(a, b vector3.Float64, r1, r2 float64) sample.Vec3ToFloat
https://iquilezles.org/articles/distfunctions/ https://www.shadertoy.com/view/tdXGWr Round Cone - exact
func RoundedCylinder ¶ added in v0.9.0
func RoundedCylinder(pos vector3.Float64, radius, topHeight, bodyHeight float64) sample.Vec3ToFloat
func Subtract ¶ added in v0.9.0
func Subtract(base, subtraction sample.Vec3ToFloat) sample.Vec3ToFloat
func Translate ¶
func Translate(field sample.Vec3ToFloat, translation vector3.Float64) sample.Vec3ToFloat
func Union ¶
func Union(fields ...sample.Vec3ToFloat) sample.Vec3ToFloat
func VarryingThicknessLine ¶ added in v0.9.0
func VarryingThicknessLine(linePoints []LinePoint) sample.Vec3ToFloat
Types ¶
Click to show internal directories.
Click to hide internal directories.