This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create the points of our cube | |
Vec3f v0(-100,-100,-100); | |
Vec3f v1( 100,-100,-100); | |
Vec3f v2( 100, 100,-100); | |
Vec3f v3(-100, 100,-100); | |
Vec3f v4(-100,-100, 100); | |
Vec3f v5( 100,-100, 100); | |
Vec3f v6( 100, 100, 100); | |
Vec3f v7(-100, 100, 100); | |
// Create the colors for each vertex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uniform float amplitude; | |
attribute float displacement; | |
varying vec3 vNormal; | |
varying vec2 vUv; | |
void main() { | |
vNormal = normal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
varying vec3 vNormal; | |
varying vec2 vUv; | |
uniform vec3 color; | |
uniform sampler2D texture; | |
void main() { | |
vec3 light = vec3( 0.5, 0.2, 1.0 ); | |
light = normalize( light ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//by @kindofsleepy | |
#ifdef GL_ES | |
precision mediump float; | |
#endif | |
uniform float time; | |
uniform vec2 mouse; | |
uniform vec2 resolution; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Based on the item you click on, this function | |
figures out the ending index of that particular item's row. | |
*/ | |
function getRow(index){ | |
//this is the number of items that can fit in a row | |
var row = Math.floor(box_width / work_width); | |
//var insertpoint = index + row; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef GL_ES | |
precision mediump float; | |
#endif | |
uniform float time; | |
uniform vec2 resolution; | |
void main(void){ | |
vec2 position = (gl_FragCoord.xy / resolution.xy); | |
float color = 0.0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Slits | |
@sortofsleepy | |
*/ | |
#ifdef GL_ES | |
precision mediump float; | |
#endif | |
uniform float time; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** ======= VERTEX SHADER ==============*/ | |
#version 150 | |
in vec4 position; | |
in vec2 texcoord; | |
uniform mat4 modelViewProjectionMatrix; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# WHY IS THIS DATA LIKE THIS BAY AREA BIKE SHARE!!!!?????? | |
{ | |
#INSTEAD OF 79707 WHY CAN IT NOT JUST SAY "Trip ID" LIKE IN THE README??? | |
"79707":79709, | |
"453":582, | |
"11/1/2013 9:23":"11/1/2013 9:24", | |
"South Van Ness at Market":"Temporary Transbay Terminal (Howard at Beale)", | |
"66":55, | |
"11/1/2013 9:31":"11/1/2013 9:34", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div ng-app="watchApp" ng-controller="watchCtrl"> | |
<div ng-repeat="a in b"> | |
<input type="text" ng-model="a.value" />{{a.value}} | |
</div> | |
<div ng-repeat="a in c"> | |
<input type="text" ng-model="a.value" />{{a.value}} | |
</div> |
OlderNewer