遅延シェーディングの実験 ( Experiment of Deferred Shading by CUDA C )

構築した G-Buffer を元に, C 言語で 平行光源の遅延シェーディングをしてみました. C 言語で書いている理由は, 最終的に CUDA C に移植して GPGPU で遅延シェーディングを計算しようとしているからです.

I programmed "Deferred Shading" with directional light using G-Buffer in C. I used C because I want to run this program at CUDA C.

しかし, 少し Specular ライトの方向がおかしい気がします. 試しに直してみます.

It seems maybe the direction of specular high light is wrong. I will try to fix it.