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
Post a Comment