Page 1 of 1

default_fence_overlay

PostPosted: Wed Oct 22, 2014 00:06
by GingerHunter797
I was wondering what this texture does. Could someone please tell me?

Re: default_fence_overlay

PostPosted: Wed Oct 22, 2014 07:31
by TenPlus1
Fence overlay image is used as a sort of stencil to create fence inventory images using specific textures for different fence types...

Re: default_fence_overlay

PostPosted: Wed Oct 22, 2014 17:14
by Calinou
How it works:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
"default_fence_overlay.png^default_wood.png^default_fence_overlay.png^[makealpha:255,126,126"


The fence overlay is drawn (just in case). The wood texture is drawn over it. Then the fence overlay is drawn again, to put some shading on it, while making all pixels of the overlay which match the exact colour 255, 126, 126 (RGB) act as a mask: the wood pixels will be transparent.

Re: default_fence_overlay

PostPosted: Thu Oct 23, 2014 16:04
by Hybrid Dog
I put the default_fence_overlay.png as first image to keep texture pack compatibility. So the first one is only needed because the wood texture isn't scaled down when using "^".
"default_wood.png^default_fence_overlay.png^[makealpha:255,126,126" would work too but it breaks texture packs with a not 16 px resolution.