mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-20 11:55:33 +00:00
Initial implementation of Custom Shader Features
This commit is contained in:
parent
54b4d2eaaf
commit
9a63761627
31 changed files with 1772 additions and 17 deletions
|
|
@ -39,6 +39,10 @@
|
|||
#include "materials/matStateHint.h"
|
||||
#endif
|
||||
|
||||
#ifndef CUSTOMSHADERBINDINGDATA_H
|
||||
#include "materials/customShaderBindingData.h"
|
||||
#endif
|
||||
|
||||
class ShaderFeature;
|
||||
class MaterialParameters;
|
||||
class MaterialParameterHandle;
|
||||
|
|
@ -81,6 +85,8 @@ public:
|
|||
|
||||
MaterialFeatureData mFeatureData;
|
||||
|
||||
Vector<CustomShaderFeatureData*> mCustomShaderFeatureData;
|
||||
|
||||
bool mGlow;
|
||||
|
||||
Material::BlendOp mBlendOp;
|
||||
|
|
@ -144,6 +150,9 @@ public:
|
|||
|
||||
/// Sets the node transforms for HW Skinning
|
||||
virtual void setNodeTransforms(const MatrixF *address, const U32 numTransforms, const U32 pass) = 0;
|
||||
|
||||
/// Sets any custom shader data
|
||||
virtual void setCustomShaderData(Vector<CustomShaderBindingData> &shaderData, const U32 pass) = 0;
|
||||
|
||||
/// Sets the scene info like lights for the given pass.
|
||||
virtual void setSceneInfo(SceneRenderState *, const SceneData& sgData, U32 pass) = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue