Search found 1 match
- Thu Jul 14, 2022 6:12 pm
- Forum: BASIC programs
- Topic: My First Submission - A ray marched sphere and plane.
- Replies: 0
- Views: 8277
My First Submission - A ray marched sphere and plane.
Enjoy! dim res(2) scale = SCREEN_SCALE() scale = 0.25 v2init(SCREEN_WIDTH() * scale,SCREEN_HEIGHT() * scale, res) st = 2 SHADOW OFF GRAPHICS REFRESH OFF for y = 0 to res(1) step st for x = 0 to res(0) step st dim frag(2) v2init(x, res(1)-y, frag) dim ro(3) dim rd(3) dim q(3) v3init(0, 0, 1, ro) v3in...