You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1) pull and build go (On OSX 10.5 if it matters.)
2) gofmt gotrace.go
gotrace.go:164:21: expected ')', found '{'
gotrace.go:166:9: expected operand, found 'return'
gotrace.go:168:5: expected declaration, found 'IDENT' litColor
gotrace.go:169:5: expected declaration, found 'IDENT' totalColor
gotrace.go:170:5: expected declaration, found 'return'
gotrace.go:171:1: expected declaration, found '}'
The line that causes the problem is:
if intersect(Ray{p, vec3mulf(s.light, -1.0)}, s.g).distance < infinity {
It's the 'Ray{...}' that's causing the problem.
Attachments:
The text was updated successfully, but these errors were encountered: