diff --git a/wadsrc/static/shaders/scene/lightmode.glsl b/wadsrc/static/shaders/scene/lightmode.glsl index fe033c6c6..924243f4f 100644 --- a/wadsrc/static/shaders/scene/lightmode.glsl +++ b/wadsrc/static/shaders/scene/lightmode.glsl @@ -63,7 +63,7 @@ vec4 getLightColor(Material material) // if (vLightmap.z >= 0.0) { - color.rgb += texture(LightMap, vec3(material.LightmapCoord.xy, vLightmap.z)).rgb; + color.rgb += texture(LightMap, vLightmap).rgb; } // diff --git a/wadsrc/static/shaders/scene/material.glsl b/wadsrc/static/shaders/scene/material.glsl index 13cb0ec6e..a61d2b012 100644 --- a/wadsrc/static/shaders/scene/material.glsl +++ b/wadsrc/static/shaders/scene/material.glsl @@ -14,7 +14,6 @@ struct Material float Metallic; float Roughness; float AO; - vec2 LightmapCoord; }; vec4 Process(vec4 color); @@ -35,7 +34,6 @@ Material CreateMaterial() material.Metallic = 0.0; material.Roughness = 0.0; material.AO = 0.0; - material.LightmapCoord = vLightmap.xy; SetupMaterial(material); return material; }