textures/darkmod/nature/grass/grass_edge/grass4_edge { surftype15 description "grass" noShadows noimpact nonsolid qer_editorimage textures/darkmod/nature/grass/grass_edge_alpha_ed { maskcolor map makealpha(textures/darkmod/nature/grass/grass_edge_alpha) alphatest parm3 } diffusemap textures/darkmod/nature/grass/grass4 bumpmap textures/darkmod/nature/grass/grass4_local { if (global5 == 1) blend add map textures/darkmod/nature/grass/grass4 scale 1, 1 red global2 green global3 blue global4 } { if (global5 == 2) blend add program ambientEnvironment.vfp vertexParm 0 1, 1, 1, 1 // UV Scales for Diffuse and Bump vertexParm 1 1, 1, 1, 1 // (X,Y) UV Scale for specular vertexParm 2 global2, global3, global4, 1 fragmentMap 0 cubeMap env/gen1 fragmentMap 1 textures/darkmod/nature/grass/grass4_local // Bump fragmentMap 2 textures/darkmod/nature/grass/grass4_dark // Diffuse fragmentMap 3 _black // Specular } }