This commit is contained in:
2026-03-04 00:50:15 -08:00
parent 9126175569
commit 4211317c03
569 changed files with 122194 additions and 0 deletions

View File

@ -0,0 +1,22 @@
// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
// SPDX-FileCopyrightText: 2026 Jorrit Rouwe
// SPDX-License-Identifier: MIT
#include "HairCalculateRenderPositionsBindings.h"
#include "HairCommon.h"
#include "HairCalculateRenderPositions.h"
JPH_SHADER_FUNCTION_BEGIN(void, main, cHairPerRenderVertexBatch, 1, 1)
JPH_SHADER_PARAM_THREAD_ID(tid)
JPH_SHADER_FUNCTION_END
{
// Check if this is a valid vertex
uint vtx = tid.x;
if (vtx >= cNumRenderVertices)
return;
float3 out_position = SkinRenderVertex(vtx);
// Copy the vertex position to the output buffer
gRenderPositions[vtx] = out_position;
}