So i've got an atlas (1 texture maps) for all my 64x64 materials and cut it up into 16x16. Got the ideas from Minecraft textures packs/sheets. Using the material editor I've divided up the texture space and altered the UV's to view one section and offset the UV's for each material I've made referencing to the same texture.
Also used the same material set-up to pixelize drop the rez of the results in the sky-dome materials to create I nice looking voxel sky. The done the same to one my own grass textures for a quick floor placeholder.
I've coded the destructible blocks to store an up-datable material instance, so I can offset the uv's of a texture which stores a damage overlay for my materials, I can eventually make a better looking and unique one for each material however for now I've made a quick generic ones for testing purposes.
Scalar Paramater setup which is passed to the code which calculates the blocks health percentage remaining and uses a case statement to update the block to the appropriate UV space of the damage overlay.
Test texture
No comments:
Post a Comment