Page 1 of 1

Sprite texture only visible in lightmap mode?

Posted: Thu Feb 19, 2009 2:01 am
by T_Creutzenberg
Hi there! I actually can't find an info that nor was I able to
figure it out myself ...

Is it possible to create a shader for an autosprite so it will
only show up in lightmap mode and not in vertex mode?

I do have an autosprite2 light beam and would like it to
show up only when lightmap mode is activated so it does
not distract too much when you want to play in "lego-quake"
with picmip 5 and vertex light ;)

Is that possible?

Thanks in advance for any help!

Image

Re: Sprite texture only visible in lightmap mode?

Posted: Thu Feb 19, 2009 2:50 am
by Hipshot
Yes. Add this to the worldspawn.

Code: Select all

Key: vertexremapshader
Value: textures/folder/texture;textures/folder/texture_vertex
Then create the shaders needed.
This will tell the game to use a different shader when playing vertex mode.

I'm using this in the same way it seems you will do. Remove stuff in vertex mode, so they can't be seen. However, the triangles will still be there, just that the effect won't be drawn.

Re: Sprite texture only visible in lightmap mode?

Posted: Thu Feb 19, 2009 3:05 am
by Hipshot
Btw, before I saw the hud, I thought this looked like a D3/Q4 level.

Re: Sprite texture only visible in lightmap mode?

Posted: Thu Feb 19, 2009 11:31 am
by T_Creutzenberg
Great! Thank you very much! That's exactly what I was looking for :D