Expand description
The skinned-cube scene: a mesh bent by two joints across six frames.
Ported from the ecs_skinned_cube_matches_snapshots test. A skinned cube
is drawn over several frames while its pose animates: the joint matrices
live in a SkinPose component the CPU updates, and each frame is stored
as its own snapshot.
Re-exportsΒ§
use super::BendSkin;πuse super::SEQUENCE_STEP;πuse super::SceneControl;πuse super::SceneDef;πuse super::SceneOptions;πuse super::TEST_SIZE;πuse super::default_options;πuse unlit_ecs::Bundle;πuse unlit_ecs::DynamicBundle;πuse unlit_ecs::bundle;πuse unlit3d::prelude::*;π
StructsΒ§
- Skinned
Cube π - The sceneβs one visible object: a cube bent by its own pose.
ConstantsΒ§
- CAMERA_
EYE π - Where the camera sits, close enough that a deformation moves many pixels.
- CAMERA_
TARGET π - The point the camera looks at.
- FRAMES π
- The frames rendered, one snapshot each.
StaticsΒ§
- SCENE
- The scene: a cube bending frame by frame, each stored as its own snapshot.
FunctionsΒ§
- bend_
angle π - The angle the bending joint holds in
frame. - build π
- Build the skinned-cube sceneβs world content.
- camera π
- The camera the whole sequence shares, so a frameβs difference is the poseβs.