MakeShader is a simple Python script which accepts a XML file which described shader and its parameter and then generate the skeleton shader source file.

Here is a simple sample.
<?xml version="1.0" encoding="utf-8"?>
<ShaderModel Name="Generic" Type="Surface">
	<Parameter Name="kD" Label="Diffuse Intensity" Type="Scalar" Default="0.5" />
	<Parameter Name="diffuseColor" Label="Diffuse Color" Type="Rgb" Default="0.5 0.5 0.5" />
	<Parameter Name="kS" Label="Specular Intensity" Type="Scalar" Default="0.5" />
	<Parameter Name="specularColor" Label="Specular Color" Type="Rgb" Default="0.5 0.5 0.5" />
</ShaderModel>

Last edited Oct 11, 2011 at 3:09 AM by JediMaster, version 4

Comments

No comments yet.