Skip to content

Instantly share code, notes, and snippets.

View MacroMachines's full-sized avatar

Nico Raftis MacroMachines

View GitHub Profile
@fand
fand / uniforms.md
Last active December 21, 2022 03:15
GLSL uniform values conversion table
@brookesi
brookesi / gist:6593116
Last active July 19, 2017 07:27
Jumper Pathfinding Library for Codea Users
--[[
Ported 17th September 2013 by Simon Brooke
Original code: https://github.com/Yonaba/Jumper
*** Copyright notice below must not be removed ***
Porting notes:
- All modules have been scrunched into the one file under
a Jumper namespace, see example at end
@Bri-G
Bri-G / Starfields2.lua
Created June 19, 2012 10:00
Starfields 3 - this one spins around a star matrix
-- StarfFields by Bri_G based on HTML by Seb Lee-Delisle
-- Rotating field around a central star matrtix
--[[ if require ~= nil then
require("loveCodea")
end --]]
function setup()
--
fov = 250
@tjb0607
tjb0607 / visualizer.py
Last active December 26, 2021 19:24
a 2D audio visualizer script for Blender 2.5+ (v0.3)
# To use this script, you must first change a few things.
# First, you'll want to change the filepath for the sound file.
# This is on line 76. Second, you might want to change the materials or the settings.
# To render this, you'll need to set the background color, enable Only Render on the display window, and render it with OpenGL (it's much faster and most optimal for 2D renders.)
# LICENSE = wtfpl
# VERSION = 0.3
import bpy
def makeMaterial(name, diffuse, alpha):
@aras-p
aras-p / gist:783703
Created January 17, 2011 23:34
GLSL Bumped Specular
// Final for now...
// iPhone 3Gs: 5.9ms
#ifdef VERTEX
attribute vec4 a_position;
attribute vec2 a_uv;
attribute vec3 a_normal;
attribute vec4 a_tangent;
uniform mat4 u_mvp;