|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MTV3D65;
namespace gefx
{
public class Fog
{
public TVAtmosphere Atmos;
public TV_COLOR Colors= new TV_COLOR(1,1,1,1);
public bool Enabled;
public float GustocaMagle = 0f;
public Fog()
{
Atmos = new TVAtmosphere();
}
public void AddFog(TV_COLOR pColor,float Gustoca)
{
Colors = pColor;
Atmos.Fog_Enable(true);
Enabled = true;
Atmos.Fog_SetColor(Colors.r, Colors.g, Colors.b);
GustocaMagle = Gustoca;
Atmos.Fog_SetParameters(0, 0, GustocaMagle);
Atmos.Fog_SetType(CONST_TV_FOG.TV_FOG_EXP, CONST_TV_FOGTYPE.TV_FOGTYPE_RANGE);
}
public void SetEnableDisable(bool boolSet)
{
Atmos.Fog_Enable(boolSet);
}
public void SetFogpParametsers(float start, float End, float Dest)
{
GustocaMagle = Dest;
Atmos.Fog_SetParameters(0, 0, GustocaMagle);
}
public void DrawFog()
{
if (Enabled)
{
Atmos.Atmosphere_Render();
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.