FireMan
Member
|
Black screen when i add "drawShadow"
Hi!
I have some problem with my code. I made car, i add mesh by "mesh.draw..." and when i add "mesh.drawShadow" boom. BLACK SCREEN. How to repare that?
Some code:
Code:
void Render()
{
Game::World.draw();
mesh.draw(car.matrix());
tire1.draw(wheel[1].matrix());
tire2.draw(wheel[0].matrix());
mesh.drawShadow(car.matrix());
tire1.drawShadow(wheel[1].matrix());
tire2.drawShadow(wheel[0].matrix());
}
All "drawShadow" made problem.
|
|
09-17-2011 10:55 AM |
|
Zervox
Member
|
RE: Black screen when i add "drawShadow"
you are not using switch(renderer)
RM_SHADOW
|
|
09-17-2011 11:14 AM |
|
FireMan
Member
|
RE: Black screen when i add "drawShadow"
Thanks. I use case RM_SHADOW but don't add shitch'er.
|
|
09-17-2011 11:51 AM |
|