@animech-public/playcanvas
Version:
PlayCanvas WebGL game engine
15 lines (13 loc) • 396 B
JavaScript
var aoSpecOccSimplePS = `
uniform float material_occludeSpecularIntensity;
void occludeSpecular(float gloss, float ao, vec3 worldNormal, vec3 viewDir) {
float specOcc = mix(1.0, ao, material_occludeSpecularIntensity);
dSpecularLight *= specOcc;
dReflection *= specOcc;
sSpecularLight *= specOcc;
sReflection *= specOcc;
}
`;
export { aoSpecOccSimplePS as default };