// Copyright UShaderLab. All Rights Reserved. // // UE_ rotation helpers — forward to the engine's material HLSL. #pragma once #include "/Plugin/ShaderLab/Private/UEFunctions/_EngineStubs.ush" // Rotate `Position` about the axis `NormalizedAxis` through `PivotPoint` by `Angle` radians. float3 UE_RotateAboutAxis(float3 NormalizedAxis, float3 PivotPoint, float Angle, float3 Position) { return RotateAboutAxis(float4(NormalizedAxis, Angle), PivotPoint, Position); }