Skip to content

Instantly share code, notes, and snippets.

View Bloodwyn's full-sized avatar
👨‍🎓

Bastian K. Bloodwyn

👨‍🎓
  • Nürnberg
View GitHub Profile
@Bloodwyn
Bloodwyn / Quaternion.hlsli
Created April 6, 2025 19:00
HLSL Quaternion Functions
float4 qMul(in const float4 a, in const float4 b){
return float4(
a.w * b.x + a.x * b.w + a.y * b.z - a.z * b.y,
a.w * b.y - a.x * b.z + a.y * b.w + a.z * b.x,
a.w * b.z + a.x * b.y - a.y * b.x + a.z * b.w,
a.w * b.w - a.x * b.x - a.y * b.y - a.z * b.z
);
}
float4 qId(){
@Bloodwyn
Bloodwyn / md5.sqf
Last active January 6, 2023 21:03
/*
Implementaion of the md5 hashing algorithm in sqf
en.wikipedia.org/wiki/md5
community.bistudio.com/wiki/SQF_syntax
Author: Bastian Kuth | "Bloodwyn"
Its rather slow (about 120ms per GUID), but can be used to convert the SteamID64 to the BattleEye GUID without having to use external tools or addons.
developer.valvesoftware.com/wiki/SteamID