Files
Project-M/Packages/com.rukhanka.animation/Samples~/Samples/Scenes/26. VFX Skinned Mesh Sampling/Assets/SkinnedMeshSampler.hlsl
T
2026-05-31 14:27:52 -07:00

17 lines
564 B
HLSL

#ifndef SKINNDE_MESH_SAMPLER_HLSL_
#define SKINNDE_MESH_SAMPLER_HLSL_
#include "Packages/com.rukhanka.animation/Rukhanka.Runtime/Deformation/Resources/ComputeDeformedVertex.hlsl"
///////////////////////////////////////////////////////////////////////////////////////////
float3 GetRandomSkinnedVertex(in uint vertexID, in int deformedMeshIndex, in float3 vertexDefaultPosition)
{
DeformedVertex v = (DeformedVertex)0;
v.position = vertexDefaultPosition;
v = GetDeformedVertexForMesh(vertexID, v, deformedMeshIndex);
return v.position;
}
#endif