FreddyMSchubert / 42_cub3d

🎮 3D game with a nostalgic vein for 🔫 Wolfenstein 3d. Can you master the elements 💧🔥🪨💨 and find your way out of the maze? ⭐️ [42 PROJECT]
6 stars 0 forks source link

enhanced entity rendering #47

Closed FreddyMSchubert closed 3 months ago

FreddyMSchubert commented 3 months ago

One ray can only render one entity. Thus, you can't see other entities through the transparent bits of walls, and many entities look terrible because they hide each other.

Instead, a given ray should be able to render all entities in it's way in order of distance.

FreddyMSchubert commented 3 months ago

Entity rendering was properly reworked. It takes more performance now but is fully functional as you'd expect, and as entities are kind of all you interact with in the game, I reckon it's justified. Merging with master!