Skip to content
Snippets Groups Projects
Commit 48eea4de authored by David Parks's avatar David Parks
Browse files

Adjust radiance maps to better match Substance

parent 13ac0f77
Branches
Tags
No related merge requests found
...@@ -595,6 +595,7 @@ vec3 pbrIbl(vec3 diffuseColor, ...@@ -595,6 +595,7 @@ vec3 pbrIbl(vec3 diffuseColor,
vec3 diffuse = diffuseLight * diffuseColor; vec3 diffuse = diffuseLight * diffuseColor;
vec3 specular = specularLight * (specularColor * brdf.x + brdf.y); vec3 specular = specularLight * (specularColor * brdf.x + brdf.y);
specular *= 1.75;
return (diffuse + specular) * ao; return (diffuse + specular) * ao;
} }
......
...@@ -151,7 +151,7 @@ vec3 prefilterEnvMap(vec3 R, float roughness) ...@@ -151,7 +151,7 @@ vec3 prefilterEnvMap(vec3 R, float roughness)
float omegaP = 4.0 * PI / (6.0 * envMapDim * envMapDim); float omegaP = 4.0 * PI / (6.0 * envMapDim * envMapDim);
// Biased (+1.0) mip level for better result // Biased (+1.0) mip level for better result
//float mipLevel = roughness == 0.0 ? 0.0 : max(0.5 * log2(omegaS / omegaP) + 1.0, 0.0f); //float mipLevel = roughness == 0.0 ? 0.0 : max(0.5 * log2(omegaS / omegaP) + 1.0, 0.0f);
color += textureLod(reflectionProbes, vec4(L,sourceIdx), mipLevel).rgb * dotNL; color += textureLod(reflectionProbes, vec4(L,sourceIdx), mipLevel+0.75).rgb * dotNL;
totalWeight += dotNL; totalWeight += dotNL;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment