@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.
18 lines • 503 B
JavaScript
// Do not edit.
import { ShaderStore } from "../../Engines/shaderStore.js";
const name = "fogFragment";
const shader = `
var fog: f32=CalcFogFactor();
fog=toLinearSpace(fog);
color= vec4f(mix(uniforms.vFogColor,color.rgb,fog),color.a);
`;
// Sideeffect
if (!ShaderStore.IncludesShadersStoreWGSL[name]) {
ShaderStore.IncludesShadersStoreWGSL[name] = shader;
}
/** @internal */
export const fogFragmentWGSL = { name, shader };
//# sourceMappingURL=fogFragment.js.map