jsocol / indirect3d

The worst pure-software 3D engine ever!

Home Page:http://jamessocol.com/indirect3d

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Maybe implement lighting for lines and points

jsocol opened this issue · comments

Need to double-check what the behavior should be here. Lines don't have surface normals so can't really interact with positional or spotlights. They could potentially interact with directional lights but it seems like that would be based on the sine of the angle between the line and light direction, rather than cosine of some normal, (i.e. lines parallel to the light direction wouldn't catch the light at all) but I may be overthinking this. It's possible the intent in D3D9 is that they just have color, not materials and not lighting effects.