Skip to content

Instantly share code, notes, and snippets.

View Jerdak's full-sized avatar
💭
Rolling only 20s.

j.carson Jerdak

💭
Rolling only 20s.
  • 50' above the ground floating on an umbrella.
View GitHub Profile
@Jerdak
Jerdak / FreeFormDeformer.cs
Created August 12, 2013 04:24
Example of free form deformation using Unity. Full package can be found in my main repository: https://github.com/Jerdak/FreeFormDeformation/tree/master/Unity
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
/// <summary>
/// Helper class that represents a parameterized vertex
/// </summary>
public class Vector3Param {
///bernstein polynomial packing
@Jerdak
Jerdak / MatrixNN.hpp
Last active December 20, 2015 08:39
c++11 concurrent thread test - Large NxN matrix multiplication.
#ifndef __MATRIXNN_H__
#define __MATRIXNN_H__
#include "thread_helpers.hpp"
#include <cstdio>
#include <cstring>
#include <random>
#include <vector>
class MatrixNN{
@Jerdak
Jerdak / EchoSpheres.cs
Last active December 19, 2015 20:49
Unity multiple echo shader. Uses floating point -> pixel packing to support transmitting data from Unity component to the shader through a texture rather than as properties.
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
[Serializable]
public class EchoSphere2 {
public enum ShaderPackingMode { Texture, Property };
public ShaderPackingMode CurrentPackingMode = ShaderPackingMode.Texture;