adding directional light actor
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
#include "Math/Vector.h"
|
||||
namespace Seele
|
||||
{
|
||||
namespace Component
|
||||
{
|
||||
struct DirectionalLight
|
||||
{
|
||||
Vector4 color;
|
||||
Vector4 direction;
|
||||
};
|
||||
} // namespace Component
|
||||
} // namespace Seele
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user