mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
Initial implementation of Custom Shader Features.
This commit is contained in:
parent
f9b7f66571
commit
dc5e502dec
12 changed files with 595 additions and 9 deletions
|
|
@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue