Can you get just the reflections of HDRI in Eevee?

Im looking for a way to use a HDRI, just for reflections… So not for the lighting (or viewable as background)…but just to generate reflections on objects

is this possible in Eevee 2.8?

Hi @Splitting_Atoms, SOmething like this?

In the world Nodes, just make a mix shader and “separate the 2 backgrounds” with the “Light path” node, with the reflection socket.
:slight_smile:

I was always using “is Camera Ray” for that but your method works better for just reflections only

“Is camera ray” will give you the reflections, but the lighting aswell AFAIK. :stuck_out_tongue:

Exactly like that! thanks a bunch!

I’m quite sure it’s faster in rendering by mixing colors rather than shaders.

Yeah! it looks a little more optimized than my nodetree. :slight_smile:

I’m not sure it matters much in this case. The factor is 0 or 1, so you’ll get only one shader call. If it was somewhere in between, then it matters because a n channel shader call is more expensive than a 3ch rgb mixer evaluation.

That’s just my theory, and I’m still influenced by my recursive raytracing background :smiley:
In fact, I think it would be faster to have only a single background shader hooked up, as it knows there is nothing to evaluate compared to having to evaluate the black color. That said, I have no idea what goes on wrt shader compilation and that stuff, so feel free to correct me.

Removed post cause I’ve not read carefully what you’ve written and showed non pertinent test about scaling numbers of shaders and colors.
True, it doesn’t matter that much in that case (the 0-1 thing), but it’s a good practice IMO to mix colors and not shaders in every case you need just a different color to avoid things like that when you make complex materials that could waste a lot of time.