float3 working version