apply recent refactoring to quad renderer
This commit is contained in:
@@ -56,5 +56,12 @@ namespace OpenRA.Graphics
|
||||
|
||||
nv += 4;
|
||||
}
|
||||
|
||||
public void SetShaderParams(ITexture palette, Size screen, float zoom, float2 scroll)
|
||||
{
|
||||
shader.SetVec("Scroll", (int)scroll.X, (int)scroll.Y);
|
||||
shader.SetVec("r1", zoom*2f/screen.Width, -zoom*2f/screen.Height);
|
||||
shader.SetVec("r2", -1, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user