directx - Multiple light sources in HLSL -



directx - Multiple light sources in HLSL -

i learning shader programming. i've got basics down, multiple lite sources different types challenging. need utilize single render pass each lite type or multiple passes? or, if there valid reasons both, utilize cases each?

you not need utilize separate pass each lite type if using forwards rendering. perform lighting lights in same shader. if used defered rendering render each lite type in separate pass.

directx hlsl

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -