mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-24 10:02:08 -05:00
40 lines
923 B
C#
40 lines
923 B
C#
using System;
|
|
|
|
namespace ClassicalSharp.Renderers {
|
|
|
|
/// <summary> Minimialistic environment renderer - only sets the clear colour to be sky colour.
|
|
/// (no fog, clouds, or proper overhead sky) </summary>
|
|
public class MinimalEnvRenderer : EnvRenderer {
|
|
|
|
public MinimalEnvRenderer( Game game ) {
|
|
this.game = game;
|
|
map = game.Map;
|
|
}
|
|
|
|
public override void Render( double deltaTime ) {
|
|
graphics.ClearColour( map.SkyCol );
|
|
}
|
|
|
|
public override void Init() {
|
|
base.Init();
|
|
graphics.Fog = false;
|
|
graphics.ClearColour( map.SkyCol );
|
|
}
|
|
|
|
public override void OnNewMap( object sender, EventArgs e ) {
|
|
}
|
|
|
|
public override void OnNewMapLoaded( object sender, EventArgs e ) {
|
|
graphics.ClearColour( map.SkyCol );
|
|
}
|
|
|
|
protected override void CloudsColourChanged() {
|
|
}
|
|
|
|
protected override void FogColourChanged() {
|
|
}
|
|
|
|
protected override void SkyColourChanged() {
|
|
}
|
|
}
|
|
}
|