i need a reflective hangar floor for my ja mp level, like this one:
http://www.lucasfiles.com/screenshots/867706.jpg)
how do i do it?
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.
Yay! Thanks! so this will even reflect my player?
in radiant, i cover the brush with the texture
then put another brush in front of it and right click it and select:misc_portal_surface?
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
}
}