remove lightmap uv from material

This commit is contained in:
Ricardo Luís Vaz Silva 2025-01-12 08:59:00 -03:00 committed by Magnus Norddahl
commit 1584e8c5fd
2 changed files with 1 additions and 3 deletions

View file

@ -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;
}
//

View file

@ -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;
}