water anim in shader

This commit is contained in:
Chris Forbes
2009-10-10 20:51:17 +13:00
parent 4fa05a6d40
commit 70bc8366a5
6 changed files with 30 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Windows.Forms;
using OpenRa.Game.Graphics;
namespace OpenRa.Game
{
@@ -19,8 +20,6 @@ namespace OpenRa.Game
int lastTime = Environment.TickCount + 2000;
public void Update()
{
int t = Environment.TickCount;
@@ -30,7 +29,9 @@ namespace OpenRa.Game
lastTime += 40;
foreach( Actor a in actors )
a.Tick( game, 40 );
a.Tick( game, 40 );
Renderer.waterFrame += 0.05f;
}
foreach (Action<World> a in frameEndActions) a(this);