Fixed: additive-translucent geometry should not be lit

This commit is contained in:
ZZYZX 2017-02-09 16:49:58 +02:00
parent d47dd9a533
commit e3ebe7dcdf
3 changed files with 7 additions and 3 deletions

View file

@ -30,6 +30,6 @@ using CodeImp.DoomBuilder;
// Build Number
// Revision
//
[assembly: AssemblyVersion("2.3.0.2876")]
[assembly: AssemblyVersion("2.3.0.2881")]
[assembly: NeutralResourcesLanguageAttribute("en")]
[assembly: AssemblyHash("e62bbba")]
[assembly: AssemblyHash("d47dd9a")]

View file

@ -1334,6 +1334,10 @@ namespace CodeImp.DoomBuilder.Rendering
if (sector == null) continue;
// note: additive geometry doesn't receive lighting
if (g.RenderPass == RenderPass.Additive)
continue;
if (settexture)
graphics.Shaders.World3D.Texture1 = g.Texture.Texture;

View file

@ -29,5 +29,5 @@ using System.Resources;
// Build Number
// Revision
//
[assembly: AssemblyVersion("2.3.0.2876")]
[assembly: AssemblyVersion("2.3.0.2881")]
[assembly: NeutralResourcesLanguageAttribute("en")]