Is it possible to set depth buffer as the texture to effect (LPDIRECT3DEFFECT9) in direct3d?
Jump to content
Posted 27 February 2014 - 11:26 AM
Yes, no, and it depends on why you want to do it.
If for shadow mapping, then it can be done (on certain hardware), but you need to create a new texture with a depth/stencil format, get surface level 0 on it, set that as your depth/stencil surface and draw into it. All summarized here: http://aras-p.info/texts/D3D9GPUHacks.html#shadowmap
It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.
Posted 27 February 2014 - 03:51 PM