Fix decals and LOS texture in Actor Viewer, by slightly reducing use of globals.

Fix particles in Actor Viewer.
Expand terrain in Actor Viewer.
Change background to black so it blends with the LOS texture more
nicely.

This was SVN commit r9172.
This commit is contained in:
Ykkrosh
2011-04-05 20:32:03 +00:00
parent 329d044a9e
commit 29dd635d3b
15 changed files with 136 additions and 38 deletions
+1 -1
View File
@@ -337,7 +337,7 @@ int ShaderRenderModifier::BeginPass(int pass)
if (shader->HasTexture("losTex"))
{
CLOSTexture& los = g_Game->GetView()->GetLOSTexture();
CLOSTexture& los = g_Renderer.GetScene().GetLOSTexture();
shader->BindTexture("losTex", los.GetTexture());
// Don't bother sending the whole matrix, we just need two floats (scale and translation)
shader->Uniform("losTransform", los.GetTextureMatrix()[0], los.GetTextureMatrix()[12], 0.f, 0.f);