LWCToFloat missing, Shader parameter changes from UE5 to 4.27.

How to implement LWCToFloat method in UE4.27 HLSL?

float3 localcampos = mul(float4(LWCToFloat(ResolvedView.WorldCameraOrigin), 1.00000000), (LWCToFloat(GetPrimitiveData(Parameters.PrimitiveId).WorldToLocal))).xyz;

any updates on this?

You don’t need LWC conversions in UE4 (as Large World Coordinates were added in UE5) everything will already be float. So you should be able to just remove the use of LWCToFloat.

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