- Home /
Different reflection cubemaps for different materials?
Hi,
I need to use two different reflection cubemaps for different materials. If I'd write my own shader would it be possible to assign a specific cubemap to use for reflections?
I am making a WebGL archviz thing with more than 40 houses, the windows and facade need to reflect the skybox and some reflective materials inside need to reflect a cubemap of the inside. I tried using reflection probes but it wouldn't bake, I guess 40+ reflection probes isn't ideal. It doesn't need to be perfect, as long as I can assign different cubemaps for reflections. I tried finding information about adding a reflection cubemap in a custom shader but didn't find anything yet, please point me if that direction if you know any tutorials or references.
$$anonymous$$aybe the "Cubemap Reflection" example here helps: https://docs.unity3d.com/$$anonymous$$anual/SL-SurfaceShaderExamples.html
Your answer
Follow this Question
Related Questions
Changing the reflection cubemap of all materials? 1 Answer
Cubemaps using the camera 0 Answers
Reflection probes and legacy shaders? 0 Answers
reflective glass shader 3 Answers
Shader performance question. 0 Answers