How to make reflection and shininess?

Started by
3 comments, last by Evolver 21 years, 9 months ago
I want my road to reflect a little because of rain. How do i do that to a polygon ? And how do you make it shine ?
Advertisement
Reflection is done by scaleing the world negitivly around the plane of the mirror. Normally a stencil buffer is employed to make sure the reflection only shows up in the mirror. If you don''t have one you need to some fancy clipping. As for shiney.. try cube mapping.
------------------------------------------------------------I wrote the best video game ever, then I woke up...
raytracing?
far to slow
Shiny?
glMaterialf(GL_FRONT, GL_SHININESS, someFloatHere);

------------
aud.vze.com - The Audacious Engine <-- It''s not much, yet. But it''s mine... my own... my preciousssss...
MSN: nmaster42@hotmail.com, AIM: LockePick42, ICQ: 74128155
_______________________________________Pixelante Game Studios - Fowl Language

This topic is closed to new replies.

Advertisement