Skip to content

Instantly share code, notes, and snippets.

View Ryan-DowlingSoka's full-sized avatar

Ryan DowlingSoka Ryan-DowlingSoka

View GitHub Profile
@mattatz
mattatz / Quaternion.hlsl
Last active March 3, 2025 02:22
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
@Aeva
Aeva / p4ignore_howto.org
Last active February 1, 2025 18:16
p4ignore tutorial

The p4ignore file lives in the client root directory, and is enabled with the following command:

> p4 set P4IGNORE=p4ignore.txt

When enabled, file paths that match the pattern described will be ignored when adding changes or new files. For example, this is used to exclude build results and tempfiles so as to keep change logs cleaner and prevent unnecessary merge conflicts.

using UnityEngine;
using UnityEditor;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
[InitializeOnLoad]
public class EditorCameraSpeed
: EditorWindow