remove lightmap uv from material
This commit is contained in:
parent
19b395b296
commit
1584e8c5fd
2 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue