CPPTemplates / MedievalSurvival

minecraft in 2d!
1 stars 0 forks source link

improve rendering algorithm #26

Open JohnHeikens opened 3 months ago

JohnHeikens commented 3 months ago

at the moment it is like this:

render sky on all places where there are no blocks render entities render blocks render shadow rendering algorithm should be like this:

fill texture with transparency render entities render blocks render shadow over all non-transparent parts (don't modify alpha channel!) render sky over all transparent parts in places where there are no blocks