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

Add materials

jsocol opened this issue · comments

Materials override simple vertex colors and let us define how a material reflects different types of light—ambient, diffuse, specular, internal/emitted light—and a "power" or "shininess" factor.

In D3D9, materials are configured on the IDirect3DDevice9 with the SetMaterial method.