SD_Radical_Ed Posted December 11, 2003 Share Posted December 11, 2003 i need a reflective hangar floor for my ja mp level, like this one: how do i do it? Link to comment Share on other sites More sharing options...
WadeV1589 Posted December 12, 2003 Share Posted December 12, 2003 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 More sharing options...
SD_Radical_Ed Posted December 12, 2003 Author Share Posted December 12, 2003 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? Link to comment Share on other sites More sharing options...
SD_Radical_Ed Posted December 12, 2003 Author Share Posted December 12, 2003 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 More sharing options...
Lil Killa Posted December 12, 2003 Share Posted December 12, 2003 That's it... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.