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.

32 lines 842 B
// Do not edit. import { ShaderStore } from "../../Engines/shaderStore.js"; const name = "morphTargetsVertexDeclaration"; const shader = `#ifdef MORPHTARGETS #ifndef MORPHTARGETS_TEXTURE #ifdef MORPHTARGETS_POSITION attribute position{X} : vec3<f32>; #endif #ifdef MORPHTARGETS_NORMAL attribute normal{X} : vec3<f32>; #endif #ifdef MORPHTARGETS_TANGENT attribute tangent{X} : vec3<f32>; #endif #ifdef MORPHTARGETS_UV attribute uv_{X} : vec2<f32>; #endif #ifdef MORPHTARGETS_UV2 attribute uv2_{X} : vec2<f32>; #endif #elif {X}==0 uniform morphTargetCount: i32; #endif #endif `; // Sideeffect if (!ShaderStore.IncludesShadersStoreWGSL[name]) { ShaderStore.IncludesShadersStoreWGSL[name] = shader; } /** @internal */ export const morphTargetsVertexDeclarationWGSL = { name, shader }; //# sourceMappingURL=morphTargetsVertexDeclaration.js.map