mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Implementation of reflection and skylight probes.
Moves lighting math to the diffuse/specular two-channel logic.
This commit is contained in:
parent
1f7cf55204
commit
b19a4b22c8
102 changed files with 12346 additions and 1911 deletions
|
|
@ -672,4 +672,30 @@ public:
|
|||
virtual String getName() { return "Hardware Skinning"; }
|
||||
};
|
||||
|
||||
/// Reflection Probes
|
||||
class ReflectionProbeFeatHLSL : public ShaderFeatureHLSL
|
||||
{
|
||||
protected:
|
||||
ShaderIncludeDependency mDep;
|
||||
|
||||
public:
|
||||
ReflectionProbeFeatHLSL();
|
||||
|
||||
virtual void processPix(Vector<ShaderComponent*> &componentList,
|
||||
const MaterialFeatureData &fd);
|
||||
|
||||
virtual Resources getResources(const MaterialFeatureData &fd);
|
||||
|
||||
// Sets textures and texture flags for current pass
|
||||
virtual void setTexData(Material::StageData &stageDat,
|
||||
const MaterialFeatureData &fd,
|
||||
RenderPassData &passData,
|
||||
U32 &texIndex);
|
||||
|
||||
virtual String getName()
|
||||
{
|
||||
return "Reflection Probes";
|
||||
}
|
||||
};
|
||||
|
||||
#endif // _SHADERGEN_HLSL_SHADERFEATUREHLSL_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue