0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ModelDebugOptionsComponent メモ

Posted at

ModelDebugOptionsComponetとは

割と新しくできたRealityKitの新機能。

HasModelプロトコルに準拠したオブジェクトなら全て使用できる。
これはレンダリングのデバックを可視化するもの。
さまざまな種類でレンダリングのレイヤーを可視化することができる。

デバッグの種類
あんまり全てを理解できてないけど、3Dモデルをインポートしたときに意図してないテキスチャになったりするときに
ここで細かく設定してデバックするっぽい。

case none
// ビジュアライゼーションを表示しないモード。
case normal
// 法線ベクトルを色で表示するモード。
case tangent
//表面の接線ベクトルを色で表示するモード.
case bitangent
//表面のビタンジェントベクトルを色で表示するモード.
case baseColor
//ライティングやマテリアルプロパティが適用されていないエンティティのベースカラーを表示するモード。
case textureCoordinates
//テクスチャ座標を色で表示するモード。
case finalColor
//透明度を無視して、エンティティの計算された色を表示するモード。
case finalAlpha
//エンティティの計算された透明度をその表面色として表示するモード。
case roughness
//素材のツヤを表面色として表示するモード。
case metallic
//エンティティの反射率を表面の色として表示するモード。
case ambientOcclusion
//計算されたアンビエントオクルージョン値をサーフェスカラーとして表示するモード。
case specular
//エンティティの光沢を表面色として表示するモード。
case emissive
//マテリアルの発光チャネルを表面色として表示するモード。
case clearcoat
//マテリアルのクリアコートチャネルを表面色として表示するモード。
case clearcoatRoughness
//材料のクリアコート粗さチャネルを表面色として表示するモード。
case lightingDiffuse
//エンティティに当たる間接光の強度を表面の色として表示するモード。
case lightingSpecular
//エンティティに当たる直接光の強度を表面の色として表示するモード。
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?