Notifications
Clear all

[Closed] Weird DX9Material.technique

Hi,
why does the technique of a DirectXMaterial always have an integer value? How can I get the actual technique name like “PS20_Specular” or something? Maybe this is possible with the DirectX Effect Framework but I havn’t found an solution for this… Could somebody give me a hint?

Thanks,
Christian

2 Replies
 rdg

Hi Christian,

if you are refering to the 20 in ‘PS20_Specular’:
This is the version of the shader language used.
In this case pixelshader version 2.0

This way you can have multiple shaders supporting different hardware with one technique.

Georg

No, the ‘PS20_Specular’ is not important, it was an example. I want to know how I can read this technique name as a string (instead of a number) by using MaxScript.