Fix gamma rendering issues
- Remove gamma correction from the Vulkan renderer - Add SamplerCreator, used to specify Min/Mag filter - Add character texture to example project - Add AnimationSystem, DebugSystem and UiRenderSystem to example project
This commit is contained in:
@@ -15,6 +15,9 @@ namespace Copium
|
||||
glm::vec2 size;
|
||||
};
|
||||
|
||||
struct Renderable {};
|
||||
struct UiRenderable {};
|
||||
|
||||
struct ColorC
|
||||
{
|
||||
glm::vec3 color;
|
||||
@@ -44,6 +47,7 @@ namespace Copium
|
||||
{
|
||||
BoundingBox projection;
|
||||
bool staticBoundingBox;
|
||||
bool uiCamera;
|
||||
};
|
||||
|
||||
struct PhysicsC
|
||||
@@ -56,7 +60,7 @@ namespace Copium
|
||||
struct PlayerC
|
||||
{
|
||||
Entity camera;
|
||||
Timer jumpTimer;
|
||||
bool grounded;
|
||||
};
|
||||
|
||||
struct HealthC
|
||||
@@ -76,6 +80,9 @@ namespace Copium
|
||||
struct DynamicColliderC
|
||||
{
|
||||
bool resolveCollision;
|
||||
glm::vec2 colliderOffset;
|
||||
glm::vec2 colliderSize;
|
||||
|
||||
glm::vec2 oldPosition;
|
||||
};
|
||||
|
||||
@@ -83,4 +90,23 @@ namespace Copium
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
struct DebugC
|
||||
{
|
||||
Entity playerEntity;
|
||||
};
|
||||
|
||||
struct AnimationC
|
||||
{
|
||||
int sheetSizeX;
|
||||
int sheetSizeY;
|
||||
int sheetStartCoordX;
|
||||
int sheetStartCoordY;
|
||||
int images;
|
||||
bool horizontal;
|
||||
float time;
|
||||
|
||||
float timeElapsed;
|
||||
int frame;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user