Skip to content

Instantly share code, notes, and snippets.

Avatar

Avatar dwulive

  • Pseudo Interactive
View GitHub Profile
@dwulive
dwulive / Quaternion.hlsl
Created Aug 27, 2022 — forked from mattatz/Quaternion.hlsl
Quaternion structure for HLSL
View Quaternion.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 Sep 26, 2013
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console