Skip to content
A soft renderer using C++ from scratch without any graphics library.
C C++ Makefile QMake
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Debug
Release gamma correction May 9, 2019
SoftRenderer
include
README.md
RenderLoop.cpp fix cliping bug May 6, 2019
RenderLoop.h
SoftRenderer.pro
SoftRenderer.pro.user
Window.cpp
Window.h
Window.ui
main.cpp framework Apr 29, 2019

README.md

Soft-Renderer

  The original intention of building such a rendering pipeline from scratch without any graphics library is to get a deeper understanding of the current three-dimensional rendering process. Many theoretical things need practice to fully understand. These days, I have gained a lot from the tortuosity of building a soft renderer, which laid a solid foundation for the learning of Computer Graphics. At present, the soft rendering pipeline I have implemented already contains the basic functions of a traditional fixed pipeline, and I no longer plan to add more features such as transparent fusion, shadow and so on, because it is unnecessary.By the way, I just use Qt to display the pixel and use stb_image to load the images. The core code is not related to Qt at all.

  Here are my personal blogs(in Chinese) if you would like get some more details about how I built it from scratch.

  软渲染器Soft Renderer:3D数学篇

  软渲染器Soft Renderer:光栅化篇

  软渲染器Soft Renderer:进击三维篇

  软渲染器Soft Renderer:光照着色篇(完结)

directionalLight

pointLight

spotlight

ret3

You can’t perform that action at this time.