Shadows are pretty much done.

This commit is contained in:
FakeShemp
2016-02-29 19:45:56 +01:00
parent 2ed5fad699
commit 0908be1e02
5 changed files with 26 additions and 19 deletions
@@ -19,12 +19,14 @@ struct DirectionalLightJob : RenderJob
Direction = glm::vec4(0,0,-1,0) * glm::inverse(Orientation);
Color = (glm::vec4)directionalLightComponent["Color"];
Intensity = (double)directionalLightComponent["Intensity"];
//TextureAlphaShadows = (bool)directionalLightComponent["TextureAlphaShadows"];
};
glm::quat Orientation;
glm::vec4 Direction;
glm::vec4 Color;
float Intensity;
bool TextureAlphaShadows = false;
void CalculateHash() override
{