adding directional light actor

This commit is contained in:
Dynamitos
2023-03-09 17:39:57 +01:00
parent 2607c28b98
commit b79525c1a6
14 changed files with 144 additions and 50 deletions
+4
View File
@@ -7,8 +7,10 @@ target_sources(Engine
Collider.h
Collider.cpp
Component.h
DirectionalLight.h
KeyboardInput.h
MeshCollider.h
PointLight.h
RigidBody.h
ShapeBase.h
ShapeBase.cpp
@@ -27,8 +29,10 @@ target_sources(Engine
Camera.h
Collider.h
Component.h
DirectionalLight.h
KeyboardInput.h
MeshCollider.h
PointLight.h
RigidBody.h
ShapeBase.h
Skybox.h
+13
View File
@@ -0,0 +1,13 @@
#pragma once
#include "Math/Vector.h"
namespace Seele
{
namespace Component
{
struct DirectionalLight
{
Vector4 color;
Vector4 direction;
};
} // namespace Component
} // namespace Seele
+15
View File
@@ -0,0 +1,15 @@
#pragma once
#include "Math/Vector.h"
namespace Seele
{
namespace Component
{
struct PointLight
{
Vector4 positionWS;
//Vector4 positionVS;
Vector4 colorRange;
};
} // namespace Component
} // namespace Seele