CGDEV
HOME
3ds Max
Algorithm
C++
DirectX
Engine
Game
glTF
Graphics
IME
Math
Other
Photoshop
Script
Shader
Unity
Unreal
Web
WebGL
D3DXQuaternionSlerp
D3DXQUATERNION * WINAPI D3DXQuaternionSlerp(D3DXQUATERNION *pOut, CONST D3DXQUATERNION *pQ1, CONST D3DXQUATERNION *pQ2, FLOAT t) { float s = 1.0f - t; float dot = D3DXQuaternionDot(pQ1, pQ2); if (dot < …
DirectX
,
Graphics
,
Shader
2014-02-27
Comments
lit
In HLSL the lit function use dotDiffuse, dotSpecular and shininess as parameters and returns a lighting coefficient vector (ambient, diffuse, specular, 1) where: ambient = 1 diffuse = ((n • l) < 0) ? 0 : n • l specular = ((n …
Shader
2010-08-03
Comments