Files
UnrealEngine/Engine/Plugins/Animation/DeformerGraph/Shaders/Private/DataInterfaceSkinnedMeshVertexAttribute.ush
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

25 lines
547 B
HLSL

// Copyright Epic Games, Inc. All Rights Reserved.
uint {DataInterfaceName}_NumVertices;
uint {DataInterfaceName}_bIsValid;
float {DataInterfaceName}_DefaultValue;
Buffer<float> {DataInterfaceName}_ValueBuffer;
uint ReadNumVertices_{DataInterfaceName}()
{
return {DataInterfaceName}_NumVertices;
}
float ReadValue_{DataInterfaceName}(uint VertexIndex)
{
if ({DataInterfaceName}_bIsValid)
{
uint BufferIndex = (VertexIndex);
return {DataInterfaceName}_ValueBuffer[BufferIndex];
}
else
{
return {DataInterfaceName}_DefaultValue;
}
}