This implements base ambient lighting for tiles which helps with tiles like lava and ceiling lights.
This commit is contained in:
parent
74a1801069
commit
3dc70c3af6
11 changed files with 48 additions and 17 deletions
|
@ -18,6 +18,7 @@ namespace textures {
|
|||
std::vector<sf::Image> surfaces;
|
||||
std::vector<size_t> ceilings;
|
||||
std::vector<wchar_t> map_tile_set;
|
||||
std::vector<int> ambient_light;
|
||||
std::unordered_map<std::string, SpriteTexture> sprite_textures;
|
||||
};
|
||||
|
||||
|
@ -27,6 +28,7 @@ namespace textures {
|
|||
|
||||
sf::Image load_image(const std::string& filename);
|
||||
|
||||
std::vector<int>& get_ambient_light();
|
||||
std::vector<wchar_t>& get_map_tile_set();
|
||||
|
||||
const uint32_t* get_surface(size_t num);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue