FMath::ComputeProjectedSphereScissorRect

InOutScissorRect should be set to View.ViewRect before the call

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h

Include

#include "Math/UnrealMathUtility.h"

Source

/Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp

Syntax

static uint32 ComputeProjectedSphereScissorRect
(
    struct FIntRect & InOutScissorRect,
    FVector SphereOrigin,
    float Radius,
    FVector ViewOrigin,
    const FMatrix & ViewMatrix,
    const FMatrix & ProjMatrix
)

Remarks

InOutScissorRect should be set to View.ViewRect before the call

Returns

0: light is not visible, 1:use scissor rect, 2: no scissor rect needed

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss