Skip to content

Instantly share code, notes, and snippets.

@sugi-cho
Last active April 8, 2022 00:28
Show Gist options
  • Save sugi-cho/60b676bf04c0f971c182 to your computer and use it in GitHub Desktop.
Save sugi-cho/60b676bf04c0f971c182 to your computer and use it in GitHub Desktop.

#UNITY_MATRIX_IT_MVの使い方とか View空間座標から、Object空間座標に変換する。
float4 objectSpacePos = mul(viewSpacePos, UNITY_MATRIX_IT_MV);

Projection空間座標から、View空間座標に変換 これは違った!!
float4 viewSpacePos = mul(eyeSpacePos, UNITY_MATRIX_P);

@sugi-cho
Copy link
Author

なんかちょっとちがうぽい!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment