Initial implementation of Custom Shader Features.

This commit is contained in:
Areloch 2017-10-05 17:04:51 -05:00
parent f9b7f66571
commit dc5e502dec
12 changed files with 595 additions and 9 deletions

View file

@ -21,7 +21,7 @@
//-----------------------------------------------------------------------------
//--- cube.dae MATERIALS BEGIN ---
singleton Material(cube_GridMaterial)
/*singleton Material(cube_GridMaterial)
{
mapTo = "GridMaterial";
@ -38,7 +38,34 @@ singleton Material(cube_GridMaterial)
doubleSided = false;
translucent = false;
translucentBlendOp = "None";
};*/
singleton CustomShaderFeatureData(FlatColorFeature)
{
};
singleton Material(cube_GridMaterial)
{
mapTo = "GridMaterial";
CustomShaderFeature[0] = FlatColorFeature;
};
//--- cube.dae MATERIALS END ---
//Voodoo!
function FlatColorFeature::processVert(%this)
{
}
function FlatColorFeature::processPixelHLSL(%this)
{
%this.writeLine(" float bobsyeruncle = 15.915;");
}
function FlatColorFeature::setTextureResources(%this)
{
}