Function MakeSkyBox( file$ )
	mm=CreateMesh()
	;перёд
	lb=LoadBrush( file$+"_FR.bmp",49 )
	cs=CreateSurface( mm,lb )
	AddVertex cs,-1,+1,-1,0,0:AddVertex cs,+1,+1,-1,1,0
	AddVertex cs,+1,-1,-1,1,1:AddVertex cs,-1,-1,-1,0,1
	AddTriangle cs,0,1,2:AddTriangle cs,0,2,3
	FreeBrush lb
	;справа
	lb=LoadBrush( file$+"_LF.bmp",49 )
	cs=CreateSurface( mm,lb )
	AddVertex cs,+1,+1,-1,0,0:AddVertex cs,+1,+1,+1,1,0
	AddVertex cs,+1,-1,+1,1,1:AddVertex cs,+1,-1,-1,0,1
	AddTriangle cs,0,1,2:AddTriangle cs,0,2,3
	FreeBrush lb
	;сзади
	lb=LoadBrush( file$+"_BK.bmp",49 )
	cs=CreateSurface( mm,lb )
	AddVertex cs,+1,+1,+1,0,0:AddVertex cs,-1,+1,+1,1,0
	AddVertex cs,-1,-1,+1,1,1:AddVertex cs,+1,-1,+1,0,1
	AddTriangle cs,0,1,2:AddTriangle cs,0,2,3
	FreeBrush lb
	;слева
	lb=LoadBrush( file$+"_RT.bmp",49 )
	cs=CreateSurface( mm,lb )
	AddVertex cs,-1,+1,+1,0,0:AddVertex cs,-1,+1,-1,1,0
	AddVertex cs,-1,-1,-1,1,1:AddVertex cs,-1,-1,+1,0,1
	AddTriangle cs,0,1,2:AddTriangle cs,0,2,3
	FreeBrush lb
	;сверху
	lb=LoadBrush( file$+"_UP.bmp",49 )
	cs=CreateSurface( mm,lb )
	AddVertex cs,-1,+1,+1,0,1:AddVertex cs,+1,+1,+1,0,0
	AddVertex cs,+1,+1,-1,1,0:AddVertex cs,-1,+1,-1,1,1
	AddTriangle cs,0,1,2:AddTriangle cs,0,2,3
	FreeBrush lb

	ScaleMesh mm,400,400,400
	FlipMesh mm
	EntityFX mm,9
	EntityOrder mm,10
	Return mm
	
End Function
;~IDEal Editor Parameters:
;~C#Blitz3D