VR blinker material

My blinker material for the Unreal VR C++ course. If I try converting the Constant4Vector for the purple color to a parameter the material will not compile with the error “Arithmetic between types float4 and float3 are undefined.” I switched back to a constant for now. Does anyone know how to resolve that error?

1 Like

@DanM

Again, @sampattuzzi and Show -> Ask.

There’s probably an option on that node to make it a float3?

Adding a MakeFloat4 node to the vector parameter so it matched the Float4 output from PostProcessInput0 did resolve the compiler error. It’s odd that the constant value didn’t complain about that previously. Perhaps it was doing an implicit conversion? Thanks.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms