Hello. I’m working on IBL, and I need blur cubemap in the shader, to use the result in the lighting. At the moment, I just simply shift the normal, but the result is a very distorted and uneven. I need to rotate the cube map in by axis. How to do it?
Rotating the normal is much easier than rotating the cube map data, and will provide higher-quality results if you’re doing it correctly.
Well i want to rotate normal but how to do it correctly? So i asked this question.
Rotations in shaders are best done with rotation matrices, but blurring of static images (like your cube map probably is) is best done once rather than every frame in a shader.
Well, the main idea is using realtime render cubemap because of dynamic environment, so blurring static image not an option. That’s the reason to do it in shader.
Maybe this anwser here will help you : Easiest way to rotate a cubemap? - Questions & Answers - Unity Discussions