diff --git a/README.md b/README.md index 8a0e7f3259a8ce891815861d1bc757652aa4bf7c..a9acff35100b81f9d56600809f6743a3e1f4ecf7 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ The naming scheme for predefined lenses is `"<TargetName><FieldName>Lens"`, wher |---|---|---| | [`ColorMaterial`](https://docs.rs/bevy/0.6.0/bevy/sprite/struct.ColorMaterial.html) | [`color`](https://docs.rs/bevy/0.6.0/bevy/sprite/struct.ColorMaterial.html#structfield.color) | [`ColorMaterialColorLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/struct.ColorMaterialColorLens.html) | -### Custom lens +## Custom lens A custom lens allows animating any field or group of fields of a Bevy component or asset. A custom lens is a type implementing the `Lens` trait, which is generic over the type of component or asset. @@ -111,7 +111,7 @@ The basic formula for lerp (linear interpolation) is either of: The two formulations are mathematically equivalent, but one may be more suited than the other depending on the type interpolated and the operations available, and the potential floating-point precision errors. -### Custom component support +## Custom component support Custom components are animated like built-in Bevy ones, via a lens.