﻿////////////////////////////////////////////////////////////////////////////////
//terrainshader.cs
//Created on: 2015-9-1, 14:28
//
//Project VoxelEngine
//Copyright C bajsko 2015. All rights Reserved.
////////////////////////////////////////////////////////////////////////////////

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VoxelEngine.Basic;

namespace VoxelEngine.Shaders
{
    /// <summary>
    /// Shader used for rendering chunks.
    /// </summary>
    public class TerrainShader : CustomShader
    {

        public float FogStart { get { return FogStart; } set { FogStart = value; SetParameter("FogStart", value); } }
        public float FogEnd { get { return FogEnd; } set { FogEnd = value; SetParameter("FogEnd", value); } }
        public Vector4 FogColor { get { return FogColor; } set { FogColor = value; SetParameter("FogColor", value); } }

        public TerrainShader() : base(Resources.TerrainShader)
        {
            SetTechnique("MainTechnique");
        }

        public TerrainShader(Matrix proj) : base(Resources.TerrainShader, proj)
        {
            SetTechnique("MainTechnique");
        }
    }
}
