A mini project to learn ZigLang.
Highly recommend the following articles for those who also want to write a mini ray tracer:
- Ray tracer for those who skipped the math class A step-by-step tutorial to write a minimal ray tracer, focusing on everything except the math part.
- A Minimal Ray-Tracer An article that focus on the math explanations of ray tracing.
# build
zig build-exe tracer.zig
# run
./tracerRender to terminal
**************++++++++++++++++++++++++++++++++++++++++++++++++++++++************
************************++++++++++++++++++++++++++++++++++**********************
********************************************************************************
########******************************************************************######
####################******************************************##################
################################################################################
%%##############################################################################
%%%%%%%%%%%%%%%%%%%%##########################################%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%==--------%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%##**%%%%%%::::----------%%%%%%.. %%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@++********..::::::::--**++:: :: @@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@==++++##%%++..::::::::::----:: ..::@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@..--======++ ......::::::::::::.. @@@@@@@@@@@@
$$$$$$$$$$$$$$$$$$..::----==.. ..........::::::.... $$$$$$$$$$$$
........::::----.... ................ ....
::::::::::------------..::::.... .............. ------::::::::
-------------------- .... ..........------ ----------------
---------------------------------- ---- ------------
-------------------------------- ------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Render to image