Shader chunk to add to the head of a fragment shader to be able to use IBL shading.
var color: vec3f = vec3(1.0);color = getIBL(normal, worldPosition, color, viewDirection, f0, metallic, roughness, clampSampler, lutTexture, envSpecularTexture, envDiffuseTexture); Copy
var color: vec3f = vec3(1.0);color = getIBL(normal, worldPosition, color, viewDirection, f0, metallic, roughness, clampSampler, lutTexture, envSpecularTexture, envDiffuseTexture);
parameters used to append the right chunks and calculate the IBL shading.
Shader chunk to add to the head of a fragment shader to be able to use IBL shading.
Example