Skip to content

Instantly share code, notes, and snippets.

Char CharStiles

Block or report user

Report or block CharStiles

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View theShade.glsl
#version 150
// All of the uniform variables are declared in the side control panel
uniform float time;
uniform vec2 resolution;
uniform sampler2D texture0;
uniform sampler2D prevFrame;
View computerHeartbeat_humanHeartbeat.pde
/*
mix of the code provided by pulse to visulize BPM, and random code on the internet and some code that i wrote
THIS CODE PROVIDED AS IS, WITH NO CLAIMS OF FUNCTIONALITY OR EVEN IF IT WILL WORK
*/
import java.lang.management.ManagementFactory;
import java.lang.management.OperatingSystemMXBean;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
View raymarchingBoilerPlate.glsl
#ifdef GL_ES
precision highp float;
#endif
// These are defined by Kodelife, or whatever environment you are using.
uniform float time;
uniform vec2 resolution;
varying vec3 v_normal;
varying vec2 v_texcoord;
View boilerplateCodeInISFEditor.glsl
/*{
"DESCRIPTION": "",
"CREDIT": "",
"ISFVSN": "2",
"CATEGORIES": [
"XXX"
],
"INPUTS": [
{
"NAME": "inputImage",
View GLSL_BoilerPlateTheForce.glsl
// http://iquilezles.org/www/articles/distfunctions2d/distfunctions2d.htm
float equiTri(vec2 p){
float side = sqrt(3.0);
p.x = abs(p.x) - 1.0;
p.y = p.y +1.0/side;
if(p.x + side*p.y > 0.0){
p = vec2(p.x - side*p.y, -side*p.x - p.y)/2.0;
}
p.x -= clamp(p.x,-2.0,0.0);
return -length(p)*sign(p.y);
View image_heightmap_terrain.glsl
#version 150
uniform float time;
uniform vec2 resolution;
uniform vec2 mouse;
uniform vec3 spectrum;
uniform sampler2D noise2;
uniform sampler2D noise1;
uniform sampler2D texture0;
View sticker-sheet.glsl
float PI = 3.14;
vec3 hsv2rgb(vec3 c)
{
vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);
vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);
return c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);
}
float smin( float a, float b, float k )
{
View boilerPlate.glsl
#version 150
uniform float time;
uniform vec2 resolution;
uniform vec2 mouse;
uniform vec3 spectrum;
uniform sampler2D texture0;
uniform sampler2D texture1;
uniform sampler2D texture2;
uniform sampler2D texture3;
View RC_pairingInterview.js
var tree
var pad = 10
class Node{
constructor(v){ // v is a string
this.val = v;
}
}
class Tree{
View manifestos.klproj
#version 150
uniform float time;
uniform vec2 resolution;
uniform vec2 mouse;
uniform vec3 spectrum;
uniform sampler2D texture0;
uniform sampler2D shared1;
uniform sampler2D texture2;
You can’t perform that action at this time.