Skip to content

Commit

Permalink
bad the shader
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSunCat committed Sep 30, 2020
1 parent a63954d commit ae988b3
Show file tree
Hide file tree
Showing 8 changed files with 428 additions and 348 deletions.
45 changes: 45 additions & 0 deletions Constants.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#pragma once
#include <cstdint>
#include <glm/vec3.hpp>

//#define CLASSIC

constexpr int WINDOW_WIDTH = 856;
constexpr int WINDOW_HEIGHT = 480;

#ifdef CLASSIC
constexpr float RENDER_DIST = 20.0f;
#else
constexpr float RENDER_DIST = 80.0f;
#endif

constexpr float PLAYER_REACH = 5.0f;

constexpr int TEXTURE_RES = 16;

constexpr int WORLD_SIZE = 64;
constexpr int WORLD_HEIGHT = 64;

constexpr uint8_t BLOCK_AIR = 0;
constexpr uint8_t BLOCK_GRASS = 1;
constexpr uint8_t BLOCK_DEFAULT_DIRT = 2;
constexpr uint8_t BLOCK_STONE = 4;
constexpr uint8_t BLOCK_BRICKS = 5;
constexpr uint8_t BLOCK_WOOD = 7;
constexpr uint8_t BLOCK_LEAVES = 8;
constexpr uint8_t BLOCK_NEW = 9;

// COLORS

// S = Sun, A = Amb, Y = skY
constexpr glm::vec3 SC_DAY = glm::vec3(1);
constexpr glm::vec3 AC_DAY = glm::vec3(0.5f, 0.5f, 0.5f);
constexpr glm::vec3 YC_DAY = glm::vec3(0.317f, 0.729f, 0.969f);

constexpr glm::vec3 SC_TWILIGHT = glm::vec3(1, 0.5f, 0.01f);
constexpr glm::vec3 AC_TWILIGHT = glm::vec3(0.6f, 0.5f, 0.5f);
constexpr glm::vec3 YC_TWILIGHT = glm::vec3(0.27f, 0.24f, 0.33f);

constexpr glm::vec3 SC_NIGHT = glm::vec3(0.3f, 0.3f, 0.5f);
constexpr glm::vec3 AC_NIGHT = glm::vec3(0.3f, 0.3f, 0.5f);
constexpr glm::vec3 YC_NIGHT = glm::vec3(0.004f, 0.004f, 0.008f);

0 comments on commit ae988b3

Please sign in to comment.