Jump to content

Home

SHADER-newbie in need of help


MustaPekka

Recommended Posts

Hey,

 

I was wondering simply how to make texture emit light in the game.

 

In the ShaderED2 I have assigned settings

 

Light Color 1, .52, 0 and Surface Light with value of 15. But in game, the light does not illuminate anything, but is just normal, static non-lighted texture ??

Link to comment
Share on other sites

Originally posted by MustaPekka

Hey,

 

I was wondering simply how to make texture emit light in the game.

 

In the ShaderED2 I have assigned settings

 

Light Color 1, .52, 0 and Surface Light with value of 15. But in game, the light does not illuminate anything, but is just normal, static non-lighted texture ??

 

does it have a lightmap stage?

Link to comment
Share on other sites

Here is the full shader for the texture.

textures/mytextures/test_light04
{
lightcolor	( 1 0.501961 0 )
q3map_surfacelight	15
   {
       map $lightmap
   }
   {
       map textures/mytextures/test_light04
       blendFunc GL_DST_COLOR GL_ZERO
   }
   {
       map textures/mytextures/test_light04glow
       blendFunc GL_ONE GL_ONE
   }
}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...