Thanks timmay3141,
But that's not it!
I already have the D3DRS_NORMALIZENORMALS flag set to true.
All I know, is that when I dont call the above scale function - the light works fine! And when I do - the light has no affect whatsoever.
Here are the render flags I set...
Hello,
I've got a problem when scaling a mesh: I don't know how to scale the normals. So when I resize my mesh - the lighting doesnt work!
Here's the code:
LPD3DXMESH ScaleMesh(LPD3DXMESH pMesh, double xscale, double yscale, double zscale){
struct Vertex {
D3DXVECTOR3 pos...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.