Giter Site home page Giter Site logo

softrenderer-1's Introduction

项目使用VS2019 Release x64构建

项目需要动态链接SDL库运行,x86的sdl文件已经包含在文件夹 SDL2-2.0.12 中, 修改编译模式需要重新连接库文件。

如果出现错误
--C1083 无法打开包括文件: “SDL.h”: No such file or directory--
请选择 Release x64 模式进行编译

摄像机运动:

wasd前后左右
qe上下
鼠标右键按住拖动移动视角
鼠标滚轮改变fov
<>键位控制屏幕gamma []控制曝光

实现功能

MVP矩阵变换
自定义shader
镜面shader 视锥剔除/齐次裁切/背面剔除
深度测试
摄像机运动
obj模型导入
透明混合
Blinn–Phong反射模型
阴影贴图(Shadow mapping)
多个带阴影贴图的不同颜色的光源
简单的SSAO
天空盒
HDR映射

数学库、贴图、模型导入的代码 与 所有的obj模型来自 https://github.com/ssloy/tinyrenderer
感谢ssloy提供的教程与素材

softrenderer-1's People

Contributors

u-nv avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.