Thanks Brice, Yes, I added simple 4x4 variable and connected camera's worldInverseMatrix to it using connection editor and it works! (I was trying to reveal those to shader's attribute using UIName, but it never worked for some reason. Using straight variables and connect them using connection editor was very good solution…
Using the connection editor you can link the matrices of your objects to your cgfx shader. You need to define a matrix in your shader - something like float4x4 camMatrix; Multiplying the vertex world position by worldInverseMatrix will give you a view space projection (no perspective) Unfortunately maya doesn't seem to…