Giter Site home page Giter Site logo

d3d11learning's Introduction

D3D11Program

代码架构

img

提交命令记录

token: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

错误记录

  1. 如果创建的是Win32控制台程序,就必须写main函数;创建的是桌面程序的话,入口函数就得定义WinMain函数。在预处理器、链接器中可以修改项目的类型

  2. 计算光照

    在Pixel中逐像素进行着色时,sv_position已经是屏幕坐标了,所以要自己传入世界空间或者摄像机空间下的位置,dx11会自动进行插值

    要注意计算的空间,光照信息和顶点信息得转换到对应空间下

    注意法线和光照方向的夹角

  3. 顶点布局inputlayout中要注意各个语义的offset,要不然gpu读取的信息会有误

d3d11learning's People

Contributors

sherererlock avatar

Watchers

James Cloos avatar  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.