@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.
38 lines • 1.36 kB
JavaScript
// Do not edit.
import { ShaderStore } from "../../Engines/shaderStore.js";
const name = "instancesVertex";
const shader = `
var finalWorld=mat4x4<f32>(vertexInputs.world0,vertexInputs.world1,vertexInputs.world2,vertexInputs.world3);
var finalPreviousWorld=mat4x4<f32>(
vertexInputs.previousWorld0,vertexInputs.previousWorld1,
vertexInputs.previousWorld2,vertexInputs.previousWorld3);
finalWorld=uniforms.world*finalWorld;
finalWorld=mesh.world*finalWorld;
finalPreviousWorld=uniforms.previousWorld*finalPreviousWorld;
var finalWorld=uniforms.world;
var finalWorld=mesh.world;
var finalPreviousWorld=uniforms.previousWorld;
`;
// Sideeffect
if (!ShaderStore.IncludesShadersStoreWGSL[name]) {
ShaderStore.IncludesShadersStoreWGSL[name] = shader;
}
/** @internal */
export const instancesVertexWGSL = { name, shader };
//# sourceMappingURL=instancesVertex.js.map