Skip to content
Snippets Groups Projects
Commit 4de6e880 authored by Ptolemy's avatar Ptolemy
Browse files

SL-17274: PBR: Add reflection vec

parent c69d7bab
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
......@@ -253,6 +253,7 @@ void main()
vec3 kSpec = reflect0 + fresnelR*pow(1.0 - dotNV, 5.0);
// Reference: getIBLRadianceGGX
vec3 reflection = normalize(reflect(-v,n));
vec3 specLight = getSpecularPBR(reflection);
#if HAS_IBL
kSpec = mix( kSpec, iridescenceFresnel, iridescenceFactor);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment