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.

28 lines 717 B
// Do not edit. import { ShaderStore } from "../Engines/shaderStore.js"; const name = "pickingPixelShader"; const shader = `#if defined(INSTANCES) flat varying vMeshID: f32; #else uniform meshID: f32; #endif @fragment fn main(input: FragmentInputs)->FragmentOutputs {var id: i32; #if defined(INSTANCES) id=i32(input.vMeshID); #else id=i32(uniforms.meshID); #endif var color=vec3f( f32((id>>16) & 0xFF), f32((id>>8) & 0xFF), f32(id & 0xFF), )/255.0;fragmentOutputs.color=vec4f(color,1.0);} `; // Sideeffect if (!ShaderStore.ShadersStoreWGSL[name]) { ShaderStore.ShadersStoreWGSL[name] = shader; } /** @internal */ export const pickingPixelShaderWGSL = { name, shader }; //# sourceMappingURL=picking.fragment.js.map