implicit cast from "float4" to "float3"

Hi,

I get this "implicit cast from “float4” to “float3"” compiler warning pointing at a strange line.

This line works fine:

uv.x = (uv.x * cos(_UVRotation)) - (uv.y * sin(_UVRotation));	// rotate

when I do this change I get the compiler warning pointing at another line:

uv.x = (uv.x * cos(_UVRotation2)) - (uv.y * sin(_UVRotation));	// rotate

thanks,
//ohm

1 Like

Can you post the rest of the shader? It’s hard to see what you’re changing without context.