@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
35 lines • 1.25 kB
JavaScript
// Do not edit.
import { ShaderStore } from "../../Engines/shaderStore.js";
const name = "pbrBlockGeometryInfo";
const shader = `var NdotVUnclamped: f32=dot(normalW,viewDirectionW);var NdotV: f32=absEps(NdotVUnclamped);var alphaG: f32=convertRoughnessToAverageSlope(roughness);var AARoughnessFactors: vec2f=getAARoughnessFactors(normalW.xyz);
alphaG+=AARoughnessFactors.y;
var environmentBrdf: vec3f=getBRDFLookup(NdotV,roughness);
var ambientMonochrome: f32=aoOut.ambientOcclusionColor.r;
var ambientMonochrome: f32=getLuminance(aoOut.ambientOcclusionColor);
var seo: f32=environmentRadianceOcclusion(ambientMonochrome,NdotVUnclamped);
var eho: f32=environmentHorizonOcclusion(-viewDirectionW,normalW,geometricNormalW);
`;
// Sideeffect
if (!ShaderStore.IncludesShadersStoreWGSL[name]) {
ShaderStore.IncludesShadersStoreWGSL[name] = shader;
}
/** @internal */
export const pbrBlockGeometryInfoWGSL = { name, shader };
//# sourceMappingURL=pbrBlockGeometryInfo.js.map