UNPKG

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

23 lines 608 B
// Do not edit. import { ShaderStore } from "../Engines/shaderStore.js"; const name = "pickingPixelShader"; const shader = `#if defined(INSTANCES) varying vMeshID: vec4f; #else uniform meshID: vec4f; #endif @fragment fn main(input: FragmentInputs)->FragmentOutputs { #if defined(INSTANCES) fragmentOutputs.color=input.vMeshID; #else fragmentOutputs.color=uniforms.meshID; #endif }`; // Sideeffect if (!ShaderStore.ShadersStoreWGSL[name]) { ShaderStore.ShadersStoreWGSL[name] = shader; } /** @internal */ export const pickingPixelShaderWGSL = { name, shader }; //# sourceMappingURL=picking.fragment.js.map