Implementation of reflection and skylight probes.

Moves lighting math to the diffuse/specular two-channel logic.
This commit is contained in:
Areloch 2018-09-16 22:15:07 -05:00
parent 1f7cf55204
commit b19a4b22c8
102 changed files with 12346 additions and 1911 deletions

View file

@ -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_