Skip to content

Instantly share code, notes, and snippets.

View dwulive's full-sized avatar

Avatar dwulive

  • Pseudo Interactive
View GitHub Profile
@dwulive
dwulive / Quaternion.hlsl
Created August 27, 2022 17:28 — forked from mattatz/Quaternion.hlsl
Quaternion structure for HLSL
#ifndef __QUATERNION_INCLUDED__
#define __QUATERNION_INCLUDED__
#define QUATERNION_IDENTITY float4(0, 0, 0, 1)
#ifndef PI
#define PI 3.14159265359f
#endif
// Quaternion multiplication
@dwulive
dwulive / 0_reuse_code.js
Created September 26, 2013 20:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console