How to Create Partial Shader Library Files

Using ShaderSpider LE, you can create an MC6 file that applies a partial shader (FX6 file). Future versions of ShaderSpider (full
version) will make it easy to create Partial Shader MC6 files.

Anyone who wants to use one of these MC6 files will need ShaderSpider LE installed.

You can include ShaderSpider with any products or downloads (see its read-me for more information.)

Download ShaderSpider LE
 

Creating an MC6 file that applies a partial shader (FX6 file)

1) Copy and paste the text to the right into a new document and save it as  ":Runtime:libraries:materials:My Materials: My Fx6 Loader.mc6"

It must be an MC6 file to work properly.

2) Change the objFileGeom to point to your partial shader.

3) Add an attrib section for each material that you want to affect. Be sure that the material is followed by a 1, if it's followed by a 0, the material will not be affected.

If a figure/prop doesn't have a listed material, it will be ignored.

You can put the FX6 file and the MC6 file into any Runtime that you want.

ShaderSpider LE files (PY and PYC files) must be installed to the main Poser Runtime, or they will not function properly.

If you're including ShaderSpider LE with a product, you may want to include it as a seperate installer.
{
version
{
number 6
}

actor UNIVERSE
{
off
objFileGeom 0 0 :Runtime:FX:Zebra.fx6
}

doc
{
animSets
{
animSet ss6Materials
{
attrib SkinHead
1
attrib SkinNeck
1
attrib SkinTorso
1
}
}
}

runPythonScript ":Runtime:Python:PoseWorks:ShaderSpider:LoadLibraryFX6.py"

actor UNIVERSE
{
geomResource 4
}
}
 

Creating an MC6 file that applies multiple partial shaders (FX6 files)

If you want an MC6 file to apply multiple partial shaders, add additional sections, like in the text to the right.

Be sure to add the "runPythonScript" section between each FX6 file, and to reset the UNIVERSE actor at the end.
{
version
{
number 6
}

// Apply the "Zebra" partial shader
actor UNIVERSE
{
off
objFileGeom 0 0 :Runtime:FX:Zebra.fx6
}


doc
{
animSets
{
animSet ss6Materials
{
attrib SkinHead
1
attrib SkinNeck
1
attrib SkinTorso
1
}
}
}

runPythonScript ":Runtime:Python:PoseWorks:ShaderSpider:LoadLibraryFX6.py"

// Apply the "Cheetah" partial shader
actor UNIVERSE
{
off
objFileGeom 0 0 :Runtime:FX:Cheetah.fx6
}

doc
{
animSets
{
animSet ss6Materials
{
attrib RCornea
1
attrib RIris
1
attrib RPupil
1
attrib REyeWhite
1
}
}
}
runPythonScript ":Runtime:Python:PoseWorks:ShaderSpider:LoadLibraryFX6.py"

actor UNIVERSE
{
geomResource 4
}
}