komadori/bevy_mod_outline · 文件 下载 ZIP
文件最后提交记录最后更新时间
README.md
以下内容由 AI 翻译,如有问题请点此提交 issue 反馈
bevy_mod_outline

此 crate 提供了一个 Bevy 插件,用于使用顶点挤出和跳跃洪水算法在网格周围绘制轮廓。
依赖
[dependencies]
bevy_mod_outline = "0.13"
示例
一个带有不透明和透明轮廓的旋转立方体和环面。
cargo run --example shapes
多个相交的网格共享一个轮廓平面。轮廓模板被偏移以在物体与其轮廓之间创建一个间隙。
cargo run --example pieces
许多相同网格的实例,具有两种不同的轮廓配置,正飞向相机。
cargo run --example flying_objects
摄像机围绕一个大型网格旋转,该网格裁剪了视锥体的不同部分。
cargo run --example orbiting_wall
通过四个相机观察的线框环面,每个相机启用了不同的渲染层组合。
cargo run --example render_layers
一个带有轮廓的动画关节 glTF 模型。
cargo run --example animated_fox
一个带有预烘焙轮廓法线的 glTF 模型。
cargo run --example hollow
一个带有轮廓的动画变形 glTF 模型。
cargo run --example morph_targets
一对球体,其中一个带有轮廓线,并配有用于选择不同抗锯齿模式的 UI。
cargo run --example ui_aa
一个带有轮廓的非流形形状,并配有用于选择不同轮廓方法和形状的 UI。
cargo run --example ui_mode
一个自发光球体围绕另一个球体运行,带有轮廓线和 HDR 泛光后期处理。
cargo run --example bloom
一个带有脉冲式 jump-flood 轮廓的扁平正方形,该轮廓被棋盘格 alpha 图案所遮罩。
cargo run --example alpha_mask
一组可通过(按住 Shift 键)单击其上的形状来选择的形状。
cargo run --example picking
版本
| 此版本 | Bevy 版本 |
|---|---|
| 0.13.x | 0.19.x |
| 0.12.x | 0.18.x |
| 0.11.x | 0.17.x |
| 0.10.x | 0.16.x |
| 0.9.x | 0.15.x |
| 0.8.x | 0.14.x |
| 0.7.x | 0.13.x |
| 0.6.x | 0.12.x |
| 0.5.x | 0.11.x |
| 0.4.x | 0.10.x |
| 0.3.x | 0.9.x |
| 0.2.x | 0.8.x |
| 0.1.x | 0.7.x |
特性
flood(默认) 启用对 jump flood 算法的支持。interpolation(默认) - 使用interpolationcrate 定义Lerptrait 实现。reflect(默认) 为组件定义Reflecttrait 实现。world_serialisation(默认) 启用AsyncWorldInheritOutline组件。
许可证
本 crate 采用 Apache License, Version 2.0(参见 LICENCE-APACHE 或 http://www.apache.org/licenses/LICENSE-2.0)或 MIT 许可证(参见 LICENCE-MIT 或 http://opensource.org/licenses/MIT)进行授权,由您 选择。
除非您明确另有声明,否则您有意提交以包含在本作品中的任何贡献,如 Apache-2.0 许可证所定义,均按上述方式双重授权,不附加任何额外条款或条件。