• Advertisement
Sign in to follow this  

Shader Parameters in DirectX_9_Material

This topic is 3625 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I’m trying to export using Maxscript a DirectX_9_Shader to a text file. So far I can use the mat.effectfile, mat.IDxMaterial.numberofBitmaps() and mat.IDxMaterial.geteffectbitmap i to get the name of the FX and the textures loaded. However, I can’t find any functions that let me access shader variables like a float parameter in the shader or even the name of the parameter associated with the texture. My question: If I had this code in the FX:
texture Diffuse Texture <  string UIName = "Diffuse Map";  int Texcoord = 0;  int MapChannel = 1;>;

bool bDiffuseMapEnable <  string UIName = "Diffuse Map Enable"; > = false;

How do I know using MaxScript that I have 2 parameters named Diffuse and bDiffuseMapEnabled, and how do I ask for their values? [Edited by - yeisnier on March 19, 2008 12:42:22 PM]

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement