Quake3World.com Forums
     Level Editing & Modeling
        Shader noob


Post new topicReply to topic
Login | Profile | | FAQ | Search | IRC




Print view Previous topic | Next topic 
Topic Starter Topic: Shader noob

XXXG-00W0
XXXG-00W0
Joined: 27 Dec 2002
Posts: 2891
PostPosted: 09-28-2005 08:19 AM           Profile Send private message  E-mail  Edit post Reply with quote


How do i get rid of these bright spots?

[lvlshot]http://i2.photobucket.com/albums/y50/Drietand/mapping/shot0000.jpg[/lvlshot]

Shader
Code:
textures/mar2/topledge
{
   qer_editorimage textures/mar2/ledgetop.tga
   q3map_surfacelight 300
   {
      map $lightmap
      rgbGen identity
   }
   {
      map textures/mar2/ledgebottom.tga
      rgbGen identity
      blendfunc GL_DST_COLOR GL_ZERO
   }
   {   
      map textures/mar2/ledgetop.tga
      blendfunc GL_ONE GL_ONE   
      blendfunc GL_SRC_ALPHA GL_ONE
      rgbgen wave sin 0.9 0.4 0 0.2
   }
}




Top
                 

foolproof
foolproof
Joined: 11 Jan 2001
Posts: 7927
PostPosted: 09-28-2005 08:33 AM           Profile Send private message  E-mail  Edit post Reply with quote


Specify a smaller lightsubdivide value (default = 128, I think).

So in your shader, under q3map_surfacelight, add q3map_lightsubdivide 32, for instance.


You're quite sure you want these *metal* walkways to emit light, though?




Top
                 

XXXG-00W0
XXXG-00W0
Joined: 27 Dec 2002
Posts: 2891
PostPosted: 09-28-2005 08:36 AM           Profile Send private message  E-mail  Edit post Reply with quote


yep glowing




Top
                 
Quake3World.com | Forum Index | Level Editing & Modeling


Post new topic Reply to topic


cron
Quake3World.com
© ZeniMax. Zenimax, QUAKE III ARENA, Id Software and associated trademarks are trademarks of the ZeniMax group of companies. All rights reserved.
This is an unofficial fan website without any affiliation with or endorsement by ZeniMax.
All views and opinions expressed are those of the author.