Index | FAQ | Search | Memberlist | Usergroups | Profile | Log in to check your private messages | Log in | Register

shader + textures glow and luma in Darkplaces

| Inside3d Forums Forum Index -> Modeling

View previous topic :: View next topic
Author | Message
--- | ---
Zoppo Joined: 10 Oct 2009 Posts: 1 |

Posted: Tue Oct 13, 2009 9:14 pm Post subject: shader + textures glow and luma in Darkplaces |

Hi there, I'm trying to do a skin for a monster in quake using the darkplaces engine, with glow, gloss and normal textures. Then I wanted to create a shader to blend the skin (the diffusemap) to reveal a second stage, but after doing this I can't see all the gloss, normals, etc created previously, only the diffuse, apparently fullbright.

Code:
progs/monster.mdl_0 { q3map_globaltexture { map progs/monsterFX.tga
tcMod scroll 0 -0.1
}
{
map progs/monster.mdl_0.tga
alphaGen vertex
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
}
}

monster.tga has an alpha channel with a black spot to reveal the layer below (monsterFX)
then I have
monster.mdl_0_gloss.tga with white alpha
monster.mdl_0_norm.tga with white alpha
(I cite all of this just to be informed if I make something redundant or useless)
monsterFX has gloss and norm too.
What's wrong in the shader?
thanks

Back to top |

Display posts from previous:

| Inside3d Forums Forum Index -> Modeling | All times are GMT
Page 1 of 1

Jump to:

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2004 phpBB Group