/ /Computes world space light directioninline float3 WorldSpaceLightDir( in float4 v ){ float3 worldPos = mul(_Object2World, v).xyz; ...... 按照数学逻辑应该是v乘以_Object2World进行矩阵变换,但是mul里却是反过来的,为什么呢? 因为不
原文链接:http://blog.csdn.net/pizi0475/article/details/6574700 摘抄“GPU Programming And Cg Language Primer 1rd Edition” 中文名“GPU编程与CG语言之阳春白雪下里巴人” In the last year I have never had to write a sin