Lights now use the absolute position instead of it's local position.
This commit is contained in:
@@ -132,7 +132,7 @@ void RenderQueueFactory::FillLights(World* world, RenderQueue* renderQueue)
|
|||||||
float falloff = (double)pointlightC["Falloff"];
|
float falloff = (double)pointlightC["Falloff"];
|
||||||
|
|
||||||
PointLightJob job;
|
PointLightJob job;
|
||||||
job.Position = transformC["Position"];
|
job.Position = glm::vec4(AbsolutePosition(world, transformC.EntityID), 1.f);
|
||||||
job.Color = color;
|
job.Color = color;
|
||||||
job.Radius = radius;
|
job.Radius = radius;
|
||||||
job.Intensity = intensity;
|
job.Intensity = intensity;
|
||||||
|
|||||||
Reference in New Issue
Block a user