public void SetFogProperties(FogProperties fogProperties) { EnableFog(fogProperties.Enabled); SetFogStart(fogProperties.Start); SetFogEnd(fogProperties.End); SetFogColor((fogProperties.EffectColor / 255)); }
public void SetFogProperties(FogProperties fogProperties) { RenderManager.Instance.SetFogProperties(fogProperties); }
public override void SetFogProperties(FogProperties properties) { if (properties != null) { base.SetFogProperties(properties); // Reset current mesh effects with new fog settings foreach (Mesh mesh in m_Meshes) { if (mesh.SubMeshes.Count > 0) { foreach (SubMesh subMesh in mesh.SubMeshes) { if (subMesh.RenderEffect != null) subMesh.RenderEffect.SetFogProperties(m_FogProperties); } } } } }
public virtual void SetFogProperties(FogProperties properties) { m_FogProperties = properties; }