1
Game Help / More preset problems...
« on: August 30, 2017, 03:22:35 am »
I'm making a preset with transparent eyelids, but the left eyelid is still visible.
The code for both eyes looks exactly the same to me, so I'm not sure what's wrong.
The code for both eyes looks exactly the same to me, so I'm not sure what's wrong.
Code: [Select]
material preset_10_bodyMatL
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture squidbody.png
}
}
pass
{
emissive 1.0 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture squidglow1.png
}
}
}
}
material preset_10_bodyMatR
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture squidbody.png
}
}
pass
{
emissive 1.0 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture squidglow1.png
}
}
}
}
material preset_10_headMatL
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture squidhead.png
}
}
pass
{
emissive 1.0 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture squidglow4.png
}
}
}
}
material preset_10_headMatR
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture squidhead.png
}
}
pass
{
emissive 1.0 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture squidglow4.png
}
}
}
}
material preset_10_eyeMatL
{
technique
{
pass
{
alpha_rejection greater_equal 128
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture squideye.png
}
}
pass
{
emissive 1.0 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture squidglow3.png
}
}
}
}
material preset_10_eyeMatR
{
technique
{
pass
{
alpha_rejection greater_equal 128
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture squideye.png
}
}
pass
{
emissive 1.0 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture squidglow3.png
}
}
}
}
material preset_10_tailMat
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture preset_10tail.png
}
}
pass
{
emissive 1.0 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture preset_10tailglow.png
}
}
}
}
material preset_10_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_10mane.png
}
}
pass
{
emissive 1.0 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture preset_10maneglow.png
}
}
}
}
material preset_10_equipMatL
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture squidequip.png
}
}
pass
{
emissive 1.0 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture squidglow2.png
}
}
}
}
material preset_10_equipMatR
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture squidequip.png
}
}
pass
{
emissive 1.0 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture squidglow2.png
}
}
}
}