- Home /
Minimap camera transparency
Hello.
I followed this tutorial on how to make a minimap using a camera that's pointing to the terrain:
http://www.youtube.com/watch?v=ZuV9Xlt-l6g
What I'm trying to figure out right now though, is how to make my map a little transparent.
The tutorial gives me a shader to use on my material, otherwise i'd just use a transparent one and go with that... but now that I have this shader, how do I make it so the map is transparent?
Shader code:
 Shader "Custom/Mask"
 {
     Properties
     {
         _MainTex ("Main Texture", 2D) = "white" {}
         _Mask ("Mask Texture", 2D) = "white" {}
     }
     
     SubShader
     {
         Tags { "Queue"="Transparent" }
         Lighting On
         ZWrite Off
         Blend SrcAlpha OneMinusSrcAlpha
         
         Pass
         {
             SetTexture [_Mask] {combine texture}
             SetTexture [_MainTex] {combine texture, previous}
         }
     }
     
 }
Meanwhile I'm trying to figure out shaders... thanks.
Answer by kolmich · Dec 12, 2012 at 04:04 PM
Hi, You can use the KGFMapSystem in combination with a 50% alpha mask.
The KGFMapSystem comes with a lot of useful minimap/map features is well documented and tested on pc, osx, android, ios and web.
assetstore:-> http://u3d.as/content/kolmich-creations/kgfmap-system/3bf
webdemo: -> http://www.kolmich.at/kolmich/demo/kgf/KGFMinimap/KGFMinimap.html
documentation: -> http://www.kolmich.at/documentation
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                