translucent + selfillum

  • Thread starter Thread starter resin
  • Start date Start date
R

resin

Guest
Im trying to use both of these (translucent + selfillum) for one model.. but it doesnt seem to work.. as soon as i add selfillum, the translucency disapeers..

I making an energy bolt... so it needs to be transparent i places.. and have selfilluminaton as well.. this is my shader.

"VertexLitGeneric"
{
"$baseTexture" "Weapons/energy-projectile"
"$selfillum" "1"
"$translucent" "1"
}

I know the combine ball has this working.. but not sure how... Anyone has any ideas? Thx in advance
 
actually i just got it working.. here is the code if others need it..
"unlitgeneric"
{
"$baseTexture" "Weapons/energy-projectile"

"$additive" "1"
"$translucent" "1"
"$model" "1"
}


translucency is when you make it use the alpha channel to render parts of the mesh transparant.. im my example i wanted some of the texture to fade out
 
resin said:
actually i just got it working.. here is the code if others need it..
"unlitgeneric"
{
"$baseTexture" "Weapons/energy-projectile"

"$additive" "1"
"$translucent" "1"
"$model" "1"
}


translucency is when you make it use the alpha channel to render parts of the mesh transparant.. im my example i wanted some of the texture to fade out

... i know what Translucent is.. but never mind then, ill find out what selfilluminaton, my self : p

-NSF
 
Ah sorry.. must be tired.. it just makes the texture illuminate so it shouldnt recieve light..but didnt work.. so i found out that i had to use "unlitgeneric" and $model 1 to get it to ignore all light. :)
 
Back
Top