Working but nothing so far
This commit is contained in:
parent
6ed5b21890
commit
c0c129db88
5 changed files with 136 additions and 35 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue