@babylonjs/viewer
Version:
The Babylon Viewer aims to simplify a specific but common Babylon.js use case: loading, viewing, and interacting with a 3D model.
25 lines (22 loc) • 706 B
JavaScript
import { S as ShaderStore } from './index-MZPybX0H.esm.js';
// Do not edit.
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 */
const decalFragmentWGSL = { name, shader };
export { decalFragmentWGSL as d };
//# sourceMappingURL=decalFragment-Bg57qmDF.esm.js.map