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.

18 lines 532 B
// Do not edit. import { ShaderStore } from "../../Engines/shaderStore.js"; const name = "meshUboDeclaration"; const shader = `#ifdef WEBGL2 uniform mat4 world;uniform float visibility; #else layout(std140,column_major) uniform;uniform Mesh {mat4 world;float visibility;}; #endif #define WORLD_UBO `; // Sideeffect if (!ShaderStore.IncludesShadersStore[name]) { ShaderStore.IncludesShadersStore[name] = shader; } /** @internal */ export const meshUboDeclaration = { name, shader }; //# sourceMappingURL=meshUboDeclaration.js.map