Hi guys, could you let me know in the c++ end where UE passes the main camera’s view matrix to shaders please? much appreciated!
Hi! I am not a pro in this theme, but when I wanted to do something with my camera view in shader, I passed the matrix from the blueprint (GetViewProjectionMatrix) to the shader like 4 vector4 parameters and did stuff with it
Good luck!
Thanks @NoirMiller, I need to modify the main camera’s view matrix on the c++ end instead of in the shader for a specific VR feature. Changing the view matrix in the shader is too expensive as it will mean changing every shader
Maybe you should try to look up to CameraManager.h and you could also try this one: Howto modify the projection matrix - #5 by hurricane86
What about this? https://youtu.be/JjrtV8s3hT4