Completely implemented from scratch with C++ 14. The repository is aim to implement a soft renderer only using DrawPixel() API.
- Render a picture
- Render a model
- Custom vertex & fragment shader
- Support alpha test & alpha blending
- Support shadows
- Implement MSAA, FXAA & TAA
- Implement ray tracing
Because this project is created by XMake, you have to install xmake first.
Go to Releases · xmake-io/xmake (github.com) and download for your platform, or install with homebrew on your Mac:
brew install xmakeFor more infomation, visit: Installation (xmake.io).
Firstly, clone the respository, then run xmake:
git clone https://github.com/Dont-laugh/DLSoftRender.git
cd DLSoftRender
xmake
xmake runYou have to install SDL2 with homebrew:
brew install sdl2Then follow along with the prompts in the windows that comes up.
Run command:
xmake project -k vsxmake -a x64You will find a folder named vsxmake20xx,it depends on your Visual Studio's version. For example, it's name will be "vsxmake2019" if you have VS2019. Then open file "vsxmake20xx/DLSoftRenderer.sln".
Run command:
xmake project -k xcodeThen open file "DLSoftRenderer.xcodeproj".