fenomas / noa

Experimental voxel game engine.
MIT License
612 stars 87 forks source link

Solid Color Opacity #6

Closed andrewtheone closed 8 years ago

andrewtheone commented 8 years ago

Hey! When I'm setting [1,1,1,0.5] as a color, without texture, it will not render the neighbouring voxel's texture as would expected.

andrewtheone commented 8 years ago

Edit: seems like its not only solid colors but textures, and its only a bug on the bottom face So the block below is not rendered

andrewtheone commented 8 years ago

Fixed(?) opacity is handled the other way around (non-transparent: opaque-true, transparent opaque-false)

fenomas commented 8 years ago

Hey, I'm just catching up with your comments. This is resolved, right? I think the engine is consistent in using opacity (true=solid) rather than transparency (true=see-through). The reason is that the opacity=false case covers both transparent colors (where the mesh gets blended with what's behind it) and textures that are partially empty (like leaves in the demo content - no alpha blending, but some of the texture is transparent).

andrewtheone commented 8 years ago

Yes it is resolved, thanks :) I just got lost because of the variable name, but finally figured out

fenomas commented 8 years ago

Great. Remember you can close issues if they're resolved :wink: