How to get vertex shader version of the videocard?

Posted By: Aquilis

How to get vertex shader version of the videocard? - 09/10/12 08:06

I'm using some shaders from the mtlFx library (escpecially the terrain multi-texturing), but video adapters that don't support Pixel/vertex shader 2.0 or newer, can't display them and the terrain and models become rly ugly on the older PCs. frown

So, I think to make the game recognize the shader model when it starts, and if it's not supported, an error message will appear. But how the game could get that system parameter? I checked sys_metrics() , but there isn't shader model parameter at all. Any ideas?
Posted By: sivan

Re: How to get vertex shader version of the videocard? - 09/10/12 08:11

d3d_shaderversion can help
Posted By: EvilSOB

Re: How to get vertex shader version of the videocard? - 09/10/12 08:14

Look up "d3d_shaderversion" in the manual...

[EDIT] GAH! Ive been ninja'ed!
Posted By: Aquilis

Re: How to get vertex shader version of the videocard? - 09/10/12 08:17

Exactly what i need. Thx.
© 2024 lite-C Forums