mirror of
https://github.com/Eragon-Brisingr/UShaderLab.git
synced 2026-09-15 14:54:36 +00:00
14 lines
472 B
Plaintext
14 lines
472 B
Plaintext
// 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);
|
|
}
|