Make uLightProbeIndex take precedence over probemap, if specified
This commit is contained in:
parent
1efa5b19cd
commit
e5db8d998a
1 changed files with 1 additions and 1 deletions
|
|
@ -176,7 +176,7 @@ vec3 ProcessMaterialLight(Material material, vec3 ambientLight, float sunlightAt
|
|||
|
||||
vec3 irradiance, prefilteredColor;
|
||||
|
||||
if (vLightmapIndex != -1)
|
||||
if (vLightmapIndex != -1 && uLightProbeIndex == 0)
|
||||
{
|
||||
uvec4 probeIndexes = textureGather(uintTextures[nonuniformEXT(vLightmapIndex + 1)], vLightmap.xy);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue