| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Buried in cloud files? We can help with Spring cleaning!

    Whether you use Dropbox, Drive, G-Suite, OneDrive, Gmail, Slack, Notion, or all of the above, Dokkio will organize your files for you. Try Dokkio (from the makers of PBworks) for free today.

  • Dokkio (from the makers of PBworks) was #2 on Product Hunt! Check out what people are saying by clicking here.

View
 

Shader_Mirror

Page history last edited by PBworks 15 years ago


Mirrors

Mirrors are reflective surfaces within the game. They can be great for improving mood or scenery but be warned.

They take a heavy toll on the fps and you cannot have two mirrors viewing each other. This will result in the Hall of Mirrors effect. You can have a mirror on a rotating brush.

 

Necessary Materials

 

Source Image

A simple black 16x16 pixel .tga will do for a 'perfect mirror'. Place it in textures/MAPNAME/

 

Shader

 

'Perfect Mirror'

A 'perfect' mirror has no scratches or blind spots. To include these you will have to use other source images and change the shader accordingly for the desired effect.

 

textures/MAPNAME/mirror

{

qer_editorimage textures/MAPNAME/mirrorbackground.tga

 

noPicMip

noMipMaps

 

surfaceparm nolightmap

surfaceparm playerclip

portal

{

map textures/MAPNAME/mirrorbackground.tga

blendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA

depthWrite

alphaGen portal 256

}

}

 

Usage

Place a misc_portal_surface within 64 gu of a brushface textured with the mirror shader from your textureset. It will select the closest face as the mirror so take care.

Comments (0)

You don't have permission to comment on this page.