bkaradzic / bgfx

Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.
https://bkaradzic.github.io/bgfx/overview.html
BSD 2-Clause "Simplified" License
15.06k stars 1.94k forks source link

Add NMS (Normal Mapping Shadows) mode to 33-pom example #2187

Open bkaradzic opened 4 years ago

bkaradzic commented 4 years ago

Normal Mapping Shadows (NMS) http://enbdev.com/doc_normalmappingshadows.htm

Presentation: http://enbdev.com/NormalMappingShadows.pdf

nms

alexpanter commented 2 years ago

Hey, Do you have any hints for how to implement this in a fragment shader?

bkaradzic commented 2 years ago

@alexpanter See: http://enbdev.com/doc_normalmappingshadows.htm

Demo, with .fx shader: normalmappingshadows.zip