Integrating DirectX Shaders in 3ds Max A Developer's ... - Visionday
Integrating DirectX Shaders in 3ds Max A Developer's ... - Visionday
Integrating DirectX Shaders in 3ds Max A Developer's ... - Visionday
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Extend<strong>in</strong>g the <strong>DirectX</strong> StandardMaterialBasic Implementation of GetTexmapHLSLFunction() – fullcode <strong>in</strong> marble.cppif(mapOn[0] && subTex[0]){_tcscat(HLSL, _T("uniform sampler2D MarbleCol1;\n"));}//… lots of HLSL// then copy it <strong>in</strong>to the buffer_tcscpy(code,HLSL);_tcscpy(entryPo<strong>in</strong>t,_T("marblefunc")); // used by compilerNote the use of “uniform”. This is required by the compiler forglobal variables.<strong>Integrat<strong>in</strong>g</strong> <strong>DirectX</strong> <strong>Shaders</strong> <strong>in</strong> <strong>3ds</strong> <strong>Max</strong>A <strong>Developer's</strong> Perspective 12© 2005 Autodesk