@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
JavaScript
// Do not edit.
import { ShaderStore } from "../Engines/shaderStore.js";
const name = "pickingPixelShader";
const shader = `
flat varying vMeshID: f32;
uniform meshID: f32;
@fragment
fn main(input: FragmentInputs)->FragmentOutputs {var id: i32;
id=i32(input.vMeshID);
id=i32(uniforms.meshID);
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