Page 1 of 1

World Reflection Cube Map Rotation

PostPosted: Sat Jul 28, 2018 4:43 pm
by czdanowitz
Hi, I am trying to add functionality to a surface shader that has a cube map with world reflection plugged into emission. What I am trying to add is a parameter that modifies the world reflection's Y rotation. In other words, this parameter would behave in the same way that Unity's Skybox/Cubemap material rotation slider works.

I have tried Rotate About Axis, Panner, Rotator, and other ways to modify the world reflection with no positive result. The Rotate About Axis got me the closest, but I couldn't resolve it's issues.

Any help would be greatly appreciated.
Thanks.

Re: World Reflection Cube Map Rotation

PostPosted: Mon Jul 30, 2018 11:03 am
by Amplify_Borba
Hello, thank you for getting in touch and for your support!

You'll have to set up the calculations manually, and we actually provide a sample that can show you how to achieve the desired effect, you can find it at AmplifyShaderEditor > Examples\Community\Skybox Cubemap Extended.

I'm also sending Unity's built-in Skybox shader so that you can examine which properties you can access, for your convenience:

Skybox-Cubed.zip
(1 KiB) Downloaded 664 times


Please let me know if this helps, thanks!