ClarkThyLord / Voxel-Core

Voxel plugin for the Godot game engine!
https://godotengine.org/asset-library/asset/465
MIT License
453 stars 28 forks source link

Voxel Materials #38

Closed ClarkThyLord closed 3 years ago

ClarkThyLord commented 3 years ago

Add the ability for Voxels to define their own material attributes per face, such as metallic, roughness, emission among others

ClarkThyLord commented 3 years ago

Voxels can now define their own metallic, specular, roughness and emission energy / color material through their respective properties, reference the voxel schema. However, these properties are not on a per face basis, instead they're applied to all faces of the voxel, but this will likely change to a per face basis in the future. Note, that if a voxel has a VoxelSet material defined it won't apply it's own "individual" material

ClarkThyLord commented 3 years ago

I've decided to keep the current implementation, I can’t think of any reason as to why I’d want materials on a per face basis, and implementing it just because would only add overhead when creating voxel content. So, unless I or someone else convinces me it's worth implementing, materials will be applied on a per voxel basis. But other than that, voxel materials have been fully implemented.