Hi everyone,
I have a terrain with 3 layers of textures (A main map spread over the whole terrain, a detail map and a lightmap for the detail textures (so they only are shown on particular patrs of the map)). It looks good, but when I change the ambient lighting the area that has detail is the only place that is affected, with the main texture not covered by detail remaining full brighness...I checked through and through, and cant seem to find the problem. Any help wuold be greatly appreciated,
Thanks :-)
tex2 = LoadTexture( "detail.bmp")
ScaleTexture tex2,6,6
grass=LoadTexture( "base2.bmp")
ScaleTexture grass, 1024,-1024
tex66=LoadTexture( "rock.bmp")
ScaleTexture tex66, 512,512
TextureBlend grass,3
terrain2=LoadTerrain ("heightmapa.bmp")
ScaleEntity terrain2, 0.5,8,0.5
PositionEntity terrain2,0,7,0
TerrainShading terrain2, True
EntityTexture terrain2,tex2,0,0
EntityTexture terrain2,grass,0,1
EntityTexture terrain2,tex66,0,2
I have a terrain with 3 layers of textures (A main map spread over the whole terrain, a detail map and a lightmap for the detail textures (so they only are shown on particular patrs of the map)). It looks good, but when I change the ambient lighting the area that has detail is the only place that is affected, with the main texture not covered by detail remaining full brighness...I checked through and through, and cant seem to find the problem. Any help wuold be greatly appreciated,
Thanks :-)
tex2 = LoadTexture( "detail.bmp")
ScaleTexture tex2,6,6
grass=LoadTexture( "base2.bmp")
ScaleTexture grass, 1024,-1024
tex66=LoadTexture( "rock.bmp")
ScaleTexture tex66, 512,512
TextureBlend grass,3
terrain2=LoadTerrain ("heightmapa.bmp")
ScaleEntity terrain2, 0.5,8,0.5
PositionEntity terrain2,0,7,0
TerrainShading terrain2, True
EntityTexture terrain2,tex2,0,0
EntityTexture terrain2,grass,0,1
EntityTexture terrain2,tex66,0,2