ShaderFX matrix stuff to Unity3D

Hello people,

This has been previous asked on the forums, but i have not found all the awnsers.

WorldViewProjection → UNITY_MATRIX_MVP
WorldView → UNITY_MATRIX_MV
WorldViewTranspose → UNITY_MATRIX_T_MV
WorldViewInverseTranspose → UNITY_MATRIX_IT_MV
WorldInverse → _World2Object
WorldInverseTranspose → ??
World → _Object2World
ViewInverseTranspose → ??
ViewInverse → ??? from code : camera.cameraToWorldMatrix.inverse
View → ??? from code : camera.cameraToWorldMatrix

Perhaps when this is clear, all this info should go in the porting notes…?

bump…

Are you actually just looking for the transposes of those last two matrices? I don’t think they exist as built-in constants, so you will have to transpose them yourself. As I’m sure you know, this is a trivially simple operation using the Matrix4x4 class.

Well i was looking for this values cause i was trying to convert a hlsl shader . thought it would be nice if everyone knows how to do this.

Right, but why the bump? You can transpose the matrices you have to get the ones you’re missing.