emartinez-dev / miniRT

This project is an introduction to the beautiful world of Raytracing. Once completed you will be able to render simple Computer-Generated-Images and you will never be afraid of implementing mathematical formulas again.
The Unlicense
2 stars 0 forks source link

Implement Plane Object #6

Closed emartinez-dev closed 11 months ago

emartinez-dev commented 1 year ago

Implement the plane object, including intersection calculations and shading, to render planar surfaces in the scene.

Plane (pl): pl <x,y,z coordinates> <3D normalized normal vector> <R,G,B colors>

emartinez-dev commented 1 year ago

I have created a scene with a yellow floor and it's working on your plane branch @Juan-aga , here it is!

image

This is the .rt file:

A   0.1 255,255,255
L   -5,7,5 0.5 255,255,255
C   0,0,0 0,0,1 120
pl  0,-0.0001,0 0,1,0  255,255,0