DirectX_9_Shader : Material
DirectX_9_Shader - superclass: material; super-superclass:MAXWrapper - 6:0 - classID: #(249140708, 1630788338)
The DirectX_9_Shader provides access to DirectX 9 shader files.
Constructors:
DirectX_9_Shader...
DxMaterial ...
Properties:
<DirectX_9_Shader>.effectfile Stringdefault: "None" -- filename
Get/Set the .FX effect file.
<DirectX_9_Shader>.shaderfxgraph (ShaderFX_Graph) : string
NEW in 3ds Max 2016: Get/set the ShaderFX graph as string.
<DirectX_9_Shader>.technique Integerdefault: 0 -- integer
Get/Set the effect technique.
<DirectX_9_Shader>.renderEnabled BooleanClass default: false -- Boolean; Force_Software_Render
Enable Software Rendering.
<DirectX_9_Shader>.renderMaterial Standardmaterialdefault: Material #29:Standard -- material; SubAnim
Get/Set the Standard Material corresponding to the directX shader.
<DirectX_9_Shader>.lightDir Integerdefault:0
Get/Set the Light Direction drop-down list selection. Default is 0 = Default Light.
The possible values depend on the number of directional light sources (Spotlights,
DirectLights etc.) in the scene which appear in the drop-down list.
<DirectX_9_Shader>.k_a fRGBA colordefault:(color 119.85 119.85 119.85)
Get/Set the shader's Ambient color.
<DirectX_9_Shader>.k_d fRGBA colordefault:(color 119.85 119.85 119.85)
Get/Set the shader's Diffuse color.
<DirectX_9_Shader>.k_s fRGBA colordefault:(color 255 255 255)
Get/Set the shader's Specular color.
<DirectX_9_Shader>.n Integerdefault: 15
Get/Set the shader's Specular Power.
<DirectX_9_Shader>.renderStyle Integer default: 0 -- integer; Software_Rendering
Retired. Not used in 3ds Max 7 and higher.
<DirectX_9_Shader>.renderShade Color default: (color 127.5 127.5 127.5) -- RGB color; Shaded_Color;
Retired. Not used in 3ds Max 7 and higher.
<DirectX_9_Shader>.renderBitmap UndefinedClass default: undefined -- bitmap; Render_Bitmap
Retired. Not used in 3ds Max 7 and higher.
DirectX_9_Shader interfaces:
Interface:IMtlRender_Compability_MtlBase
Properties:
Methods:
Actions:
Properties:
<DirectX_9_Shader>.effectFilename: string : Read|Write
Get/Set the name of the effect.
<DirectX_9_Shader>.softwareBitmap: bitmap : Read|Write
Get/Set the bitmap to be used by the software rendering.
Methods:
<void><DirectX_9_Shader>.reloadeffect()
Reload the effect.
<integer><DirectX_9_Shader>.numberofbitmaps()
Get thenumber ofbitmaps.
<bitmap><DirectX_9_Shader>.geteffectbitmap <integer>index
Get the bitmap of the specified indexed effect channel.
<void><DirectX_9_Shader>.seteffectbitmap <integer>index <bitmap>bitmap
Set the indexed effect channel to the specified bitmap.
<integer><DirectX_9_Shader>.bitmapmappingchannel <index>index
Set the mapping channel of the indexed bitmap.
<enum><DirectX_9_Shader>.bitmapusage <index>index
bitmapusage enums:{#Unknown|#DiffuseMap|#BumpMap|#OpacityMap|#DisplacementMap|#LightMap}
Get the bitmap usage.
<void><DirectX_9_Shader>.setmappingchannel <index>index <integer>mapChannel
Set the mapping channel of the indexed bitmap to the integer value mapChannel.
<integer><DirectX_9_Shader>.getNumberOfTechniques()
Returns the number of techniques.Available in 3ds Max 2008 and higher.
<string><DirectX_9_Shader>.getTechniqueName <index>Index
Returns the name of the indexed technique.Available in 3ds Max 2008 and higher.
<string by value array><DirectX_9_Shader>.getTechniqueList()
Returns the technique list.Available in 3ds Max 2008 and higher.
<string><DirectX_9_Shader>.getCurrentTechniqueName()
Returns the name of the current technique.Available in 3ds Max 2008 and higher.