https://github.com/visualgmq/softrenderer
a soft renderer make in C++ use SDL2
https://github.com/visualgmq/softrenderer
cpp17 renderer sdl2
Last synced: about 1 year ago
JSON representation
a soft renderer make in C++ use SDL2
- Host: GitHub
- URL: https://github.com/visualgmq/softrenderer
- Owner: VisualGMQ
- Created: 2022-01-02T16:44:59.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-12T07:33:19.000Z (almost 4 years ago)
- Last Synced: 2025-04-06T02:41:17.115Z (about 1 year ago)
- Topics: cpp17, renderer, sdl2
- Language: C++
- Homepage:
- Size: 1.88 MB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
# SoftRenderer
一个基于SDL的软渲染器。单头文件,纯C++编写。
需要`SDL`和`SDL_image`进行编译。
参考了[韦易笑大神的RenderHelp项目](https://github.com/skywind3000/RenderHelp)。
制作的详细知识点可以参考[我的博客](https://visualgmq.gitee.io/2022/03/06/%E4%BB%8E0%E5%BC%80%E5%A7%8B%E5%88%B6%E4%BD%9C%E8%BD%AF%E6%B8%B2%E6%9F%93%E5%99%A8%EF%BC%88%E9%9B%B6%EF%BC%89/)
## 功能
- [x] 面剔除
- [x] 深度测试
- [x] 可编程着色器
- [x] 纹理映射
## 效果图
