@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.
21 lines • 662 B
JavaScript
// Do not edit.
import { ShaderStore } from "../../Engines/shaderStore.js";
const name = "decalFragment";
const shader = `
var decalTempColor=decalColor.rgb;var decalTempAlpha=decalColor.a;
decalTempColor=toLinearSpaceVec3(decalColor.rgb);
decalTempAlpha=decalColor.a*decalColor.a;
surfaceAlbedo=mix(surfaceAlbedo.rgb,decalTempColor,decalTempAlpha);
`;
// Sideeffect
if (!ShaderStore.IncludesShadersStoreWGSL[name]) {
ShaderStore.IncludesShadersStoreWGSL[name] = shader;
}
/** @internal */
export const decalFragmentWGSL = { name, shader };
//# sourceMappingURL=decalFragment.js.map