Jump to content

Home

how do i make a reflective hangar floor?


SD_Radical_Ed

Recommended Posts

Heh, my map :)

 

Get yourself a nice looking texture, like dark marble, and create a shader for it using the following code (from my upcoming siege map, much more suttle reflection):

textures/sg_hatak/marble_reflect
{
qer_editorimage textures/sg_hatak/marble
portal
sort	portal
surfaceparm forcefield
   {
       map textures/sg_hatak/marble
       blendFunc GL_ONE GL_SRC_COLOR
       depthWrite
       alphaGen portal 512
   }
   {
       map $lightmap
       blendFunc GL_ZERO GL_SRC_COLOR
   }
}

 

Place the shader texture onto the surface of a brush and place a misc_portal_surface entity on top of the brush (within 64 units of the surface).

 

Et voila, a lightmapped reflective floor - i.e. in shadows it doesn't reflect as much, much like a real reflective floor does.

Link to comment
Share on other sites

ya if the texture that i want on my floor is called "blingbling_floor.jpg" in my textures/myroom folder, is this how the shader needs to work?

 

i named it "blingbling_floor.shader"

 

textures/myroom/blingbling_floor

{

qer_editorimage textures/myroom/blingbling_floor

portal

sort portal

surfaceparm forcefield

{

map textures/myroom/blingbling_floor

blendFunc GL_ONE GL_SRC_COLOR

depthWrite

alphaGen portal 512

}

{

map $lightmap

blendFunc GL_ZERO GL_SRC_COLOR

}

}

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...