Original Post
Hi all Im writing engine for render with Per-Pixel Lighting technique. But i have some proble. How can i draw decal in my engine. I render decal by draw a quad lie on target surface and adjust Z-Bias for eliminate z-fighting problem. It work on scene without lighting. If i want draw decal with lighting i must - Render Scene with ambient - Render Decal with ambient For all lights - Draw Shadow Volume - Draw Scene with light End For all light - Draw Shadow Volume - Draw Decal with light End. ....... It's mean i must draw shadow volume 2 time !?!?! Have any better solution for my problem ? Thx for reply :)