default_fence_overlay

User avatar
GingerHunter797
Member
 
Posts: 144
Joined: Sun Oct 13, 2013 15:36
In-game: GingerHunter797

default_fence_overlay

by GingerHunter797 » Wed Oct 22, 2014 00:06

I was wondering what this texture does. Could someone please tell me?
http://i.imgur.com/gqXXUaI.png

3DS Friend Code: 2122-7173-2797
Add me as a friend! :D

Want to play a fun game? http://voxelands.com/
 

User avatar
TenPlus1
Member
 
Posts: 1874
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1

Re: default_fence_overlay

by TenPlus1 » Wed Oct 22, 2014 07:31

Fence overlay image is used as a sort of stencil to create fence inventory images using specific textures for different fence types...
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: default_fence_overlay

by Calinou » Wed Oct 22, 2014 17:14

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.
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

Re: default_fence_overlay

by Hybrid Dog » Thu Oct 23, 2014 16:04

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.
 


Return to Minetest Texture Packs

Who is online

Users browsing this forum: No registered users and 59 guests

cron