- Home /
Cubemaps using the camera
Using the code sample in the docs: http://unity3d.com/support/documentation/ScriptReference/Camera.RenderToCubemap.html I have been able to create a reflective surface using a cube map generated from the camera.
The problem I have is that the reflection will always reflect only in one direction, not taking into account rotation or anything despite hardcoding the rotation value. Is there a way I can generate a cube map from the main player camera that takes into account the rotation of the camera (using the code from the link above)?
Your answer
![](https://koobas.hobune.stream/wayback/20220613072720im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Changing the reflection cubemap of all materials? 1 Answer
How to use two reflection cameras in the same scene? 0 Answers
Different reflection cubemaps for different materials? 0 Answers
Is it possible to align the cubemap axes with the camera? 0 Answers
Reflection probes and legacy shaders? 0 Answers