Message 1 of 1
HLSL conditional compile #define in Maya?
Not applicable
04-11-2009
02:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
3DS Max defines #define _3DSMAX_ when it loads(and compiles) a HLSL shader. As a result, we can do something like this in shader codes:
Is there any equivalent keyword Maya 2009 defines while compiling a HLSL shader?
Thanks,
#ifdef _3DSMAX_
float4x4 World:WORLD; //USE SAS in Max
#else
float4x4 World(c36); // Use predefined constant register in Game
#endif
Is there any equivalent keyword Maya 2009 defines while compiling a HLSL shader?
Thanks,