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 String default: "None" -- filename
Get/Set the .FX effect file.
<DirectX_9_Shader>.technique Integer default: 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 Standardmaterial default: Material #29:Standard -- material; SubAnim
Get/Set the Standard Material corresponding to the directX shader.
<DirectX_9_Shader>.lightDir Integer default: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 color default: (color 119.85 119.85 119.85)
Get/Set the shader's Ambient color.
<DirectX_9_Shader>.k_d fRGBA color default: (color 119.85 119.85 119.85)
Get/Set the shader's Diffuse color.
<DirectX_9_Shader>.k_s fRGBA color default: (color 255 255 255)
Get/Set the shader's Specular color.
<DirectX_9_Shader>.n Integer default: 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.
Interface: IMtlRender_Compability_MtlBase
Properties:
Methods:
Actions:
Interface: IDxMaterial
Properties:
.effectFilename : string : Read|Write
Get/Set the name of the effect.
.softwareBitmap : bitmap : Read|Write
Get/Set the bitmap to be used by the software rendering.
Methods:
<void>reloadeffect()
Reload the effect.
<integer>numberofbitmaps()
Get the number of bitmaps.
<bitmap>geteffectbitmap <integer>index
Get the bitmap of the specified indexed effect channel.
<void>seteffectbitmap <integer>index <bitmap>bitmap
Set the indexed effect channel to the specified bitmap.
<integer>bitmapmappingchannel <index>index
Set the mapping channel of the indexed bitmap.
<enum>bitmapusage <index>index
bitmapusage enums: {#Unknown|#DiffuseMap|#BumpMap|#OpacityMap|#DisplacementMap|#LightMap}
Get the bitmap usage.
<void>setmappingchannel <index>index <integer>mapChannel
Set the mapping channel of the indexed bitmap to the integer value mapChannel.
See also
Interface: globalDXDisplayManager