Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17560

HLSL Shader for multiple light source types

$
0
0

Does one provide for each supported BRDF, a separate shader for each type of light sources (i.e. directional, point, lightmap, etc.)? Or is it somehow possible to use a single shader for all types of light sources?


Viewing all articles
Browse latest Browse all 17560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>