音樂老師上課寶典
若是動(dòng)態(tài)光源此方法就無效了。
45.Vertex
Shader是什么?怎么計(jì)算?
頂點(diǎn)著色器是一段執(zhí)行在GPU 上的程序,用來取代 fixed pipeline 中的transformation和 lighting , Vertex Shader 主要操作頂點(diǎn)。
Vertex Shader 對輸入頂點(diǎn)完成了從 local space 到 homogeneous space (齊次空間)的變換過程, homogeneous
space 即 projection space 的下一個(gè)space 。在這其間共有 world transformation, view transformation和 pro
標(biāo)簽: