WIP
This commit is contained in:
@@ -15,7 +15,7 @@ struct DirectionalLightJob : RenderJob
|
||||
DirectionalLightJob(ComponentWrapper transformComponent, ComponentWrapper directionalLightComponent, World* m_World)
|
||||
: RenderJob()
|
||||
{
|
||||
Direction = glm::vec4((glm::vec3)directionalLightComponent["Direction"], 1.f);
|
||||
Direction = glm::vec4((glm::vec3)directionalLightComponent["Direction"], 0.f);
|
||||
Color = (glm::vec4)directionalLightComponent["Color"];
|
||||
Intensity = (double)directionalLightComponent["Intensity"];
|
||||
};
|
||||
|
||||
@@ -63,7 +63,7 @@ private:
|
||||
float Radius = 5.f;
|
||||
float Intensity = 0.8f;
|
||||
float Falloff = 0.3f;
|
||||
enum Type_t { Point, Directional, Spot } Type;
|
||||
enum Type_t { Zero, Point, Directional, Spot } Type;
|
||||
};
|
||||
std::vector<LightSource> m_LightSources;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user