Files
UnrealEngine/Engine/Plugins/FX/Niagara/Shaders/Private/NiagaraDataInterfaceEmitterPropertiesTemplate.ush
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

30 lines
894 B
HLSL

// Copyright Epic Games, Inc. All Rights Reserved.
uint {ParameterName}_LocalSpace;
uint {ParameterName}_BoundsValid;
float3 {ParameterName}_BoundsMin;
float3 {ParameterName}_BoundsMax;
uint {ParameterName}_FixedBoundsValid;
float3 {ParameterName}_FixedBoundsMin;
float3 {ParameterName}_FixedBoundsMax;
void GetLocalSpace_{ParameterName}(out bool bLocalSpace)
{
bLocalSpace = {ParameterName}_LocalSpace != 0;
}
void GetBounds_{ParameterName}(out bool bValid, out float3 Min, out float3 Max)
{
// GPU is always fixed no dynamic bounds currently
bValid = {ParameterName}_BoundsValid != 0;
Min = {ParameterName}_BoundsMin;
Max = {ParameterName}_BoundsMax;
}
void GetFixedBounds_{ParameterName}(out bool bValid, out float3 Min, out float3 Max)
{
bValid = {ParameterName}_FixedBoundsValid != 0;
Min = {ParameterName}_FixedBoundsMin;
Max = {ParameterName}_FixedBoundsMax;
}