playcanvas
Version:
PlayCanvas WebGL game engine
6 lines (4 loc) • 515 B
JavaScript
// vertex shader internally used to apply morph targets in textures into a final texture containing
// blended morph targets
var morphVS = "\n attribute vertex_position: vec2f;\n varying uv0: vec2f;\n\n @vertex\n fn vertexMain(input: VertexInput) -> VertexOutput {\n var output: VertexOutput;\n output.position = vec4f(input.vertex_position, 0.5, 1.0);\n output.uv0 = input.vertex_position * 0.5 + vec2f(0.5, 0.5);\n return output;\n }\n";
export { morphVS as default };