The raycaster can now pair a floor with a ceiling tile and to demonstrate this I have a blue light that shines on to a stone floor. I also played with just pixelating a regular image rather than painting it and honestly it looks better in a lot of ways.
This commit is contained in:
parent
e015652f4c
commit
931d9493d2
11 changed files with 50 additions and 39 deletions
|
@ -25,8 +25,6 @@ struct Raycaster {
|
|||
double $plane_y = 0.66;
|
||||
sf::Texture $view_texture;
|
||||
sf::Sprite $view_sprite;
|
||||
const uint32_t *$floor_texture = nullptr;
|
||||
const uint32_t *$ceiling_texture = nullptr;
|
||||
DinkyECS::Entity aiming_at = 0;
|
||||
|
||||
std::unique_ptr<RGBA[]> $pixels = nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue