|
Hello. I'm looking for a transparent diffuse shader that combines two textures' alpha channels like this
Appreciate your help! thanks, vivien Edit: Related to the above: What could I do to animate (scroll) the texture 1 and it's alpha and keep texture 2 static? (The result would be a scrolling transparent texture with a static alpha that makes it f.i fade at the borders) Thanks!
(comments are locked)
|
|
How did you end up with some white in your red/green/blue channels? ^^ Anyway, here you go:
Sinon vous auriez pu me demander directement. V. wow thanks! that was what I was looking for :) merci for your time & effort!
Oct 08 '10 at 12:56 PM
VivienS
@RGB channels: Mh, I was wondering about that too.. ^^ but it was comperhensible, that's the most important thing. thx again.
Oct 08 '10 at 12:59 PM
VivienS
Vote for me dammit!
Oct 15 '10 at 07:43 AM
taoa
+1 Dammit! :)
Oct 17 '10 at 02:55 AM
Tzan
^^
Oct 18 '10 at 08:08 AM
taoa
(comments are locked)
|
|
Nice Shader, for those who want it as additive Shader (useful for fire-effects like in WoW since Wotlk) I wrote this:
(comments are locked)
|
I think there was a standard shader in one of the online repositories that does this, but I can't find it anymore. 
Related to your Edit: Add this:
float2 uv_AlphaMap
to the struct Input {...} function and change: o.Alpha = c.a * tex2D(_AlphaMap, IN.uv_MainTex).r; to:
o.Alpha = c.a * tex2D(_AlphaMap, IN.uv_AlphaMap).r;
You can scroll the first texture with this script attached to your gameobject with the material that uses the shader: