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

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Shader_Mirror

Page history last edited by PBworks 16 years, 11 months 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.