Float3 to Float2 issue with Reflection Vector

Hi there!
I’m following a tutorial from Artstation on creating a crystal asset for unreal and I’m running into an issue in the material creation that I can’t seem to find a solution to.
As I follow the tutorial, I get stuck in the section where he is adding reflections into the material that are independent of light source.
The setup is basically grabbing the normal and plug it into a transform vector, which then plugs into a reflection vector that is then plugged into a hdri texture node that then connects to the base color section with an add node.
Now when I try to replicate it, I run into an error when plugging the reflection vector into the hdri. The error I get is “[SM5] (Node TextureSample) Cannot cast from larger type float3 to smaller type float2.”
Now, I’m trying to understand where my issue is coming from as I seem to have everything plugged the same way as his and I’m only left thinking if it has something to do with either the normal map at the start and the hdri map that I’m trying to use. Is there a way where having something different or missing in the texture maps that could cause the reflection vector to not connect properly with it?
This is an image of the way I have it set up


And this is a screenshot of the way he has it setup

Here is also a link to the tutorial

Maybe you need

2 Likes

I realize this is an old post, but I stumbled here trying to solve the same issue. I also followed a vid and couldn’t figure out why I was getting the same error.

Turns out the problem is it needs a .hdr or .exr Cubemap in the texture sample.

Hope this helps someone! :heart: