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:
Thraix
2023-06-19 12:37:11 +02:00
parent 76bda0ace4
commit 042d1b6c70
42 changed files with 510 additions and 123 deletions
+27 -1
View File
@@ -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;
};
}