-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3D Tiles の処理の流れにおいて、ポリゴンの次元を5次元に拡張して、位置座標といっしょにテクスチャのUV座標をもたせるようにするだけの改修です。 (いまのところUVの情報は使わずに途中で捨てています) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **新機能** - ポリゴンをマルチポリゴン構造に追加する際に、ポリゴンのコピーを回避して効率を向上させるために、`MultiPolygon`実装内の`push`メソッドがポリゴンの参照を取るように変更されました。 - **バグ修正** - 特定のコンテキスト内で最後のUVが最初のUVと同じである必要がある場合のエラーハンドリングを追加しました。 - **リファクタ** - 複数の関数呼び出しで追加の引数を含むように変更しました。 - `geometry_slicing_stage`と`tile_writing_stage`でのデータ変換とインデックス処理を調整しました。 - **スタイル** - 複数のインポート文と変数名を更新しました。 <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
15 changed files
with
292 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//! Material mangement | ||
|
||
use std::hash::Hash; | ||
|
||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Serialize, Clone, PartialEq, Deserialize)] | ||
pub struct Material { | ||
pub base_color: [f32; 4], | ||
// NOTE: Adjust the hash implementation if you add more fields | ||
} | ||
|
||
impl Eq for Material {} | ||
|
||
impl Hash for Material { | ||
fn hash<H: std::hash::Hasher>(&self, state: &mut H) { | ||
self.base_color.iter().for_each(|c| c.to_bits().hash(state)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.