UNPKG

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

3 lines (2 loc) 1.03 kB
import{S as e}from"./index-BPURObVq.esm.min.js";import{i as n,a as r}from"./imageProcessingFunctions-dwYg-EB2.esm.min.js";import{h as s}from"./helperFunctions-Sht42MtG.esm.min.js";const i="imageProcessingPixelShader",a="varying vec2 vUV;uniform sampler2D textureSampler;\n#include<imageProcessingDeclaration>\n#include<helperFunctions>\n#include<imageProcessingFunctions>\n#define CUSTOM_FRAGMENT_DEFINITIONS\nvoid main(void)\n{vec4 result=texture2D(textureSampler,vUV);result.rgb=max(result.rgb,vec3(0.));\n#ifdef IMAGEPROCESSING\n#ifndef FROMLINEARSPACE\nresult.rgb=toLinearSpace(result.rgb);\n#endif\nresult=applyImageProcessing(result);\n#else\n#ifdef FROMLINEARSPACE\nresult=applyImageProcessing(result);\n#endif\n#endif\ngl_FragColor=result;}";e.ShadersStore[i]||(e.ShadersStore[i]=a);const o=[n,s,r];for(const n of o)e.IncludesShadersStore[n.name]||(e.IncludesShadersStore[n.name]=n.shader);const t={name:i,shader:a};export{t as imageProcessingPixelShader}; //# sourceMappingURL=imageProcessing.fragment-CprfGHst.esm.min.js.map