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) 739 B
import{S as e}from"./index-BPURObVq.esm.min.js";const n="hdrFilteringVertexShader",t="attribute position: vec2f;varying direction: vec3f;uniform up: vec3f;uniform right: vec3f;uniform front: vec3f;\n#define CUSTOM_VERTEX_DEFINITIONS\n@vertex\nfn main(input : VertexInputs)->FragmentInputs {\n#define CUSTOM_VERTEX_MAIN_BEGIN\nvar view: mat3x3f= mat3x3f(uniforms.up,uniforms.right,uniforms.front);vertexOutputs.direction=view*vec3f(vertexInputs.position,1.0);vertexOutputs.position= vec4f(vertexInputs.position,0.0,1.0);\n#define CUSTOM_VERTEX_MAIN_END\n}";e.ShadersStoreWGSL[n]||(e.ShadersStoreWGSL[n]=t);const i={name:n,shader:t};export{i as hdrFilteringVertexShaderWGSL}; //# sourceMappingURL=hdrFiltering.vertex-BB-0vjOO.esm.min.js.map