DX9SDK MultiAnimation example lighting problem

Started by
0 comments, last by Cypher19 20 years ago
I've implemented the MultiAnimation code into my program, but something I've noticed in my program is that Tiny cannot be lit by lights that I define, only by a single directional light defined in the MultiAnimat.fx HLSL shader. I know for sure that lighting in my program does work, since when using a plain static mesh it is properly lit. Does anyone know why Tiny is not being lit by my own lights, and is there some way to make it lit? (Note: I have even made the lights at the exact location of Tiny, and given the maximum range possible, but Tiny is still completely unlit) [edited by - Cypher19 on April 14, 2004 10:00:37 PM]
Advertisement
You are rendering tiny with the shader. Not your normal dx so it isn''t gonna use dx''s lights. Look at Microsoft''s tutorial on doing shaders and lights. Also the .fx files are such a waste. I wouldn''t use those.

This topic is closed to new replies.

Advertisement