15 years, 10 months ago
Highlights
Your problem happens on this ...D3DXVec3TransformNormal(&rayObjDirection;,&rayDir;,&matInverse;);...When you want to transform a normal, not a point, you should pass the tr…
15 years, 10 months ago
15 years, 11 months ago
This is quoted from "HLSL Language Basics" in DirectX SDK documentation.-------------------------------------------------A matrix also use per-component operations in HLSL:float…
15 years, 11 months ago
15 years, 11 months ago
Maybe you can try thisgRender->SetTextureStageState( 0, D3DTSS_COLORARG2, D3DTA_CURRENT );
15 years, 11 months ago
Latest Activity
Your problem happens on this ...D3DXVec3TransformNormal(&rayObjDirection;,&rayDir;,&matInverse;);...When you want to transform a normal, not a point, you should pass the transposeof …
15 years, 10 months ago
This is quoted from "HLSL Language Basics" in DirectX SDK documentation.-------------------------------------------------A matrix also use per-component operations in HLSL:float3x3 mat1,mat2;...float3
15 years, 11 months ago
Maybe you can try thisgRender->SetTextureStageState( 0, D3DTSS_COLORARG2, D3DTA_CURRENT );
15 years, 11 months ago