Shaders and IMML¶
Using Shaders in IMML¶
Shaders are added to the MaterialGroup of an Element in IMML. They can also be added to the scene in the VastPark Creator and applied to the Selected object through the Property Inspector.
<Primitive Name="box1" Type="Box" Complexity="VeryLow" Position="1,0,0" Size="1,1,1">
<MaterialGroup Id="-1">
<Material Ambient="#4c4c4c" Diffuse="#cccccc" Emissive="#ffffff" Specular="#000000" EnableTextures="True"/>
<Shader Enabled="True" Source="http://id.vastpark.com/VastParkWS/get.vpws?publisher=EIN&name=goochy&domain=vastpark&context=park"/>
</MaterialGroup>
<Physics Enabled="False" Movable="False"/>
</Primitive>
Below is an example of a box before and after a shader is applied.