mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-12-03 17:12:06 +00:00
- fix wrong uniform state
This commit is contained in:
parent
64cc7d2bc2
commit
9d02676f8f
2 changed files with 4 additions and 2 deletions
|
@ -3466,9 +3466,10 @@ namespace CodeImp.DoomBuilder.Data
|
||||||
|
|
||||||
// Begin fullbright shaderpass
|
// Begin fullbright shaderpass
|
||||||
General.Map.Graphics.SetShader(ShaderName.world3d_fullbright);
|
General.Map.Graphics.SetShader(ShaderName.world3d_fullbright);
|
||||||
|
General.Map.Graphics.SetUniform(UniformName.fogsettings, new Vector4(-1.0f));
|
||||||
|
|
||||||
// Render to the six faces of the cube map
|
// Render to the six faces of the cube map
|
||||||
for(int i = 0; i < 6; i++)
|
for (int i = 0; i < 6; i++)
|
||||||
{
|
{
|
||||||
Matrix faceview = GetCubeMapViewMatrix((CubeMapFace)i);
|
Matrix faceview = GetCubeMapViewMatrix((CubeMapFace)i);
|
||||||
General.Map.Graphics.SetUniform(UniformName.world, mworld);
|
General.Map.Graphics.SetUniform(UniformName.world, mworld);
|
||||||
|
|
|
@ -82,6 +82,7 @@ void RenderDevice::SetAlphaTestEnable(bool value)
|
||||||
mAlphaTest = value;
|
mAlphaTest = value;
|
||||||
mNeedApply = true;
|
mNeedApply = true;
|
||||||
mShaderChanged = true;
|
mShaderChanged = true;
|
||||||
|
mUniformsChanged = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue