UNPKG

@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.

19 lines 830 B
// Do not edit. import { ShaderStore } from "../../Engines/shaderStore.js"; const name = "openpbrConductorReflectance"; const shader = `#define pbr_inline ReflectanceParams conductorReflectance(in vec3 baseColor,in vec3 specularColor,in float specularWeight) {ReflectanceParams outParams; #if (CONDUCTOR_SPECULAR_MODEL==CONDUCTOR_SPECULAR_MODEL_OPENPBR) outParams.coloredF0=baseColor*specularWeight;outParams.coloredF90=specularColor*specularWeight; #else outParams.coloredF0=baseColor;outParams.coloredF90=vec3(1.0); #endif outParams.F0=1.0;outParams.F90=1.0;return outParams;}`; // Sideeffect if (!ShaderStore.IncludesShadersStore[name]) { ShaderStore.IncludesShadersStore[name] = shader; } /** @internal */ export const openpbrConductorReflectance = { name, shader }; //# sourceMappingURL=openpbrConductorReflectance.js.map