Skip to content

jjyr/minimal-ray-tracer-zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minimal ray tracer Zig

A mini project to learn ZigLang.

Highly recommend the following articles for those who also want to write a mini ray tracer:

Run

# build
zig build-exe tracer.zig

# run
./tracer

Render

Render to terminal

**************++++++++++++++++++++++++++++++++++++++++++++++++++++++************
************************++++++++++++++++++++++++++++++++++**********************
********************************************************************************
########******************************************************************######
####################******************************************##################
################################################################################
%%##############################################################################
%%%%%%%%%%%%%%%%%%%%##########################################%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%==--------%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%##**%%%%%%::::----------%%%%%%..        %%%%%%%%%%%%%%%%
@@@@@@@@@@@@@@@@@@@@@@++********..::::::::--**++::            ::  @@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@==++++##%%++..::::::::::----::            ..::@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@..--======++  ......::::::::::::..                @@@@@@@@@@@@
$$$$$$$$$$$$$$$$$$..::----==..  ..........::::::....                $$$$$$$$$$$$
            ........::::----....  ................                ....
::::::::::------------..::::....    ..............                ------::::::::
--------------------    ....          ..........------          ----------------
----------------------------------              ----                ------------
--------------------------------                  ------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------

Render to image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages