Working but nothing so far

This commit is contained in:
Crizomb 2025-09-26 02:14:10 +02:00
parent 6ed5b21890
commit c0c129db88
5 changed files with 136 additions and 35 deletions

View file

@ -8,7 +8,7 @@ type Sphere struct {
}
func (s Sphere) Distance(p Vector3) (float64, Color) {
return p.Sub(s.center).Length(), s.color
return p.Sub(s.center).Length() - s.radius, s.color
}
// Box