1
Game Help / Re: Back at it again with another preset question.
« on: August 06, 2018, 10:49:57 am »It's possible, let me get my code in order and I'll show you how.
Alright, so first we have a transparent head.
Then, we overlay a mask to let us know where we want the scrolling texture.
And finally, we have the scrolling texture.
The code to make this work is this:Code: [Select]material preset_12_headMatL
{
technique
{
pass
{
scene_blend alpha_blend
alpha_rejection greater 128
texture_unit
{
texture TRANSPARENT HEAD.png
}
}
pass
{
scene_blend alpha_blend
alpha_rejection greater 128
texture_unit
{
texture HEAD MASK (BLACK AREAS WHERE YOU WANT SCROLLING).png
}
texture_unit
{
texture HEAD MASK (BLACK AREAS WHERE YOU WANT SCROLLING).png
colour_op alpha_blend
}
texture_unit
{
texture SCROLLING TEXTURE.jpg
colour_op_ex blend_current_alpha src_texture src_current
tex_address_mode wrap
filtering trilinear
scroll_anim 0.0 0.1
}
}
}
}
The result is this:
Just make the black mask over the tongue instead of the swirls that I did in the example, and obviously only erase the areas where you want transparency on the main head texture.
Thank you thank you! Seems to be working.