Update uniform usage

This commit is contained in:
Dean Herbert 2018-08-20 13:39:22 +09:00
parent e982901205
commit e628e78f24
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ public override void Draw(Action<TexturedVertex2D> vertexAction)
if (Shared.VertexBuffer == null)
Shared.VertexBuffer = new QuadVertexBuffer<TexturedTrailVertex>(max_sprites, BufferUsageHint.DynamicDraw);
Shader.GetUniform<float>("g_FadeClock").Value = Time;
Shader.GetUniform<float>("g_FadeClock").UpdateValue(ref Time);
int updateStart = -1, updateEnd = 0;
for (int i = 0; i < Parts.Length; ++i)