/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/ThirdParty/Jolt/Shaders/ShaderPlane.h
18 строк
459 B
Jan Krassnigg
Updated Jolt to version 5.5.0 (#1778)
20 янв 2026, 10:54
Не верифицирован
20 янв 2026, 10:54
c41ee15
Код
Авторство
О чём код?
// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics) // SPDX-FileCopyrightText: 2025 Jorrit Rouwe // SPDX-License-Identifier: MIT JPH_Plane JPH_PlaneFromPointAndNormal(float3 inPoint, float3 inNormal) { return JPH_Plane(inNormal, -dot(inNormal, inPoint)); } float3 JPH_PlaneGetNormal(JPH_Plane inPlane) { return inPlane.xyz; } float JPH_PlaneSignedDistance(JPH_Plane inPlane, float3 inPoint) { return dot(inPoint, inPlane.xyz) + inPlane.w; }