@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) • 580 B
JavaScript
import{S as e}from"./index-BPURObVq.esm.min.js";const r="copyTexture3DLayerToTexturePixelShader";e.ShadersStoreWGSL[r]||(e.ShadersStoreWGSL[r]="var textureSampler: texture_3d<f32>;uniform layerNum: i32;varying vUV: vec2f;@fragment\nfn main(input: FragmentInputs)->FragmentOutputs {let coord=vec3f(vec2f(input.vUV.x,input.vUV.y)*vec2f(textureDimensions(textureSampler,0).xy),f32(uniforms.layerNum));let color=textureLoad(textureSampler,vec3i(coord),0).rgb;fragmentOutputs.color= vec4f(color,1);}");
//# sourceMappingURL=copyTexture3DLayerToTexture.fragment-BJpA-3kr.esm.min.js.map