I insist!Originally Posted by Clootie
My... I actually read that page from the SDK yesterday! But didn't get much out of itOK, opening DirectX 8.0 SDK help: page "Mathematics of Direct3D Lighting" or directly from here: Diffuse Lighting (DirectX 8.1 C++ Archive):
Are there actually cards that don't?PS. You have to check is current card suports DIFFUSEMATERIALSOURCE at all (can't recall right now how to check this)
Ouch... Didn't get it :-/PPS. So, solution is to use COLOR1 and COLOR2 data field in vertex, and using COLOR2 to modulate material based color. Or move diffuce encoded alpha to light alpha and use DIFFUSEMATERIALSOURCE = D3DMCS_COLOR1. Or use COLOR1 and TFACTOR (skipping lighting altogeter)
So, I should be putting two D3DCOLOR fields in my flexible vertex format? Then what...? (Sorry )
Bookmarks