• Advertisement
Sign in to follow this  

Scaling and lighting

This topic is 4045 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there any way to prevent normals to be scaled when a scaling operation is part of your transform? I'm trying to render a unit sphere in different sizes by scaling it in the world transform, but it messes up the lightning (I'm using the fixed pipeline).

Share this post


Link to post
Share on other sites
Advertisement
I would suggest reading about and enabling the render state D3DRS_NORMALIZENORMALS.

Share this post


Link to post
Share on other sites
Thanks. Never heard of that render state before. But I'm a noob, so that isn't very surprising. :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement