Hello!
I'm trying to create a preset for a character of mine that happens to be a fluffy white cat. The whole preset was created with ambient shading in the coding, as I'd like the shading to be more pronounced than FH's default coding will allow. This has worked out perfectly so far, but I'm running into problems with the mane. The code for transparency and the code for ambient shading would need to be combined in order to allow both effects to show properly. (Otherwise I'll have to choose between a glowing mane at night or a blocky mane 24/7)
I've tried dropping the ambient shading code in beneath "pass" and above "texture unit," but that didn't seem to work. Neither did tuning "lighting off" to "lighting on."
Here's what my mane code currently looks like:
material preset_1_maneMat
{
technique
{
pass
{
lighting on
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
ambient 0.75 0.74 0.73 1.0
texture_unit
{
texture Preset1Mane.png
}
}
}
}
Here's the two codes separately:
Transparency:
material preset_1_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture Preset1Mane.png
}
}
}
}
Ambient:
{
technique
{
pass
{
ambient 0.75 0.74 0.73 1.0
texture_unit
{
texture Preset1Mane.png
}
}
}
}
EDIT: Forgot to mention that I will be using the 'forward' or 'side' manes, not the 'fluffy' mane. It's probably not important, but I thought I'd mention it just in case it is. <3
Also, is it possible to combine animation (Gif/frame-by-frame style) with ambient shading? If you could help me out, that would be super neat. :y