Files
phy/bevy_render/mesh/morph/index.html
Orion Kindel 0ce894e6b0 doc
2025-03-18 10:30:23 -05:00

7 lines
6.5 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `morph` mod in crate `bevy_render`."><title>bevy_render::mesh::morph - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="bevy_render" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0 (9fc6b4312 2025-01-07)" data-channel="1.84.0" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../../static.files/storage-59e33391.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-893ab5e7.css"></noscript><link rel="icon" href="https://bevyengine.org/assets/icon.png"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../../../bevy_render/index.html"><img src="https://bevyengine.org/assets/icon.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../../bevy_render/index.html"><img src="https://bevyengine.org/assets/icon.png" alt="logo"></a><h2><a href="../../../bevy_render/index.html">bevy_<wbr>render</a><span class="version">0.15.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module morph</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#constants" title="Constants">Constants</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In bevy_<wbr>render::<wbr>mesh</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../../index.html">bevy_render</a>::<wbr><a href="../index.html">mesh</a></span><h1>Module <span>morph</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/bevy_mesh/lib.rs.html#12">Source</a> </span></div><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.MeshMorphWeights.html" title="struct bevy_render::mesh::morph::MeshMorphWeights">Mesh<wbr>Morph<wbr>Weights</a></div><div class="desc docblock-short">Control a specific <a href="../struct.Mesh.html" title="struct bevy_render::mesh::Mesh"><code>Mesh</code></a> instances <a href="https://en.wikipedia.org/wiki/Morph_target_animation">morph targets</a>. These control the weights of
specific “mesh primitives” in scene formats like GLTF. They can be set manually, but
in most cases they should “automatically” synced by setting the <a href="struct.MorphWeights.html" title="struct bevy_render::mesh::morph::MorphWeights"><code>MorphWeights</code></a> component
on a parent entity.</div></li><li><div class="item-name"><a class="struct" href="struct.MorphAttributes.html" title="struct bevy_render::mesh::morph::MorphAttributes">Morph<wbr>Attributes</a></div><div class="desc docblock-short">Attributes <strong>differences</strong> used for morph targets.</div></li><li><div class="item-name"><a class="struct" href="struct.MorphTargetImage.html" title="struct bevy_render::mesh::morph::MorphTargetImage">Morph<wbr>Target<wbr>Image</a></div><div class="desc docblock-short">An image formatted for use with <a href="struct.MorphWeights.html" title="struct bevy_render::mesh::morph::MorphWeights"><code>MorphWeights</code></a> for rendering the morph target.</div></li><li><div class="item-name"><a class="struct" href="struct.MorphWeights.html" title="struct bevy_render::mesh::morph::MorphWeights">Morph<wbr>Weights</a></div><div class="desc docblock-short">Controls the <a href="https://en.wikipedia.org/wiki/Morph_target_animation">morph targets</a> for all child <code>Mesh3d</code> entities. In most cases, <a href="struct.MorphWeights.html" title="struct bevy_render::mesh::morph::MorphWeights"><code>MorphWeights</code></a> should be considered
the “source of truth” when writing morph targets for meshes. However you can choose to write child <a href="struct.MeshMorphWeights.html" title="struct bevy_render::mesh::morph::MeshMorphWeights"><code>MeshMorphWeights</code></a>
if your situation requires more granularity. Just note that if you set <a href="struct.MorphWeights.html" title="struct bevy_render::mesh::morph::MorphWeights"><code>MorphWeights</code></a>, it will overwrite child
<a href="struct.MeshMorphWeights.html" title="struct bevy_render::mesh::morph::MeshMorphWeights"><code>MeshMorphWeights</code></a> values.</div></li></ul><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.MorphBuildError.html" title="enum bevy_render::mesh::morph::MorphBuildError">Morph<wbr>Build<wbr>Error</a></div></li></ul><h2 id="constants" class="section-header">Constants<a href="#constants" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="constant" href="constant.MAX_MORPH_WEIGHTS.html" title="constant bevy_render::mesh::morph::MAX_MORPH_WEIGHTS">MAX_<wbr>MORPH_<wbr>WEIGHTS</a></div><div class="desc docblock-short">Max target count available for <a href="struct.MorphWeights.html" title="struct bevy_render::mesh::morph::MorphWeights">morph targets</a>.</div></li></ul></section></div></main></body></html>