转换中函数的对应关系。
/*
* atan2 -> atan
* clip -> (unsupported)
* ddx -> dFdx
* ddy -> dFdy
* fmod -> mod (XXX: these are different if sign is negative)
* frac -> fract
* lerp -> mix
* lit -> (unsupported)
* log10 -> (unsupported)
* mul -> (change to operator)
* rsqrt -> inversesqrt
* saturate -> (use clamp)
* sincos -> (map to manual sin/cos calls)
* tex* -> texture
* tex*grad -> textureGrad
* tex*lod -> textureLod
* tex*bias -> (use optional 'bias' value)
* tex*proj -> textureProj
*/
本文详细探讨了在图形渲染过程中,从HLSL(High-Level Shader Language)到GLSL(OpenGL Shading Language)转换时,各种函数的对应关系,帮助读者理解两种着色语言之间的兼容性和转换技巧。
536

被折叠的 条评论
为什么被折叠?



