Skip to content

hudongyue1/myGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myGL

  1. The simplest ray tracer is finished in v0.1, and it can be downloaded in https://github.com/hudongyue1/myGL/archive/refs/tags/lesson.zip

The related post is Scratchapixel: Simple Ray Tracing | HDY blog

It can render the image like:

v0.1

  1. The ray tracer v0.2, and it can support to render the triangle mesh. It can be downloaded in https://github.com/hudongyue1/myGL/releases/tag/lesson1

With a mesh model, we can triangulate it at first, then render it like:

v0.2

Adding the choice for Flat Shading and Smooth Shading:

Flat-Shading Flat-Shading
Smooth-Shading Smooth-Shading
3. The ray tracer v0.3, add some effects for direct illumination. The related post is [Scratchapixel: Light and Shading | HDY blog](https://hudongyue.com/2022/12/23/Scratchapixel-Light-and-Shading/)
  • Distance light, point light and shadow
distanceShadow1 Shadow1
distanceShadow2 Shadow2
  • Several light

    severalLight
  • Reflection

    reflection
  • Reflection and refraction

distanceShadow1 Without Smooth Shading
distanceShadow2 With Smooth Shading
  • Phong Model

    reflection

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published