Skip to content

Instantly share code, notes, and snippets.

Avatar

Mikola Lysenko mikolalysenko

View GitHub Profile
@mikolalysenko
mikolalysenko / Dreamy.glsl
Created May 21, 2014 — forked from glslioadmin/TEMPLATE.glsl
GLSL.io Transition (v1)
View Dreamy.glsl
#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D from, to;
uniform float progress;
uniform vec2 resolution;
vec2 offset(float progress, float x, float theta) {
float phase = progress*progress + progress + theta;
float shifty = 0.03*progress*cos(10.0*(progress+x));
View index.html
<!DOCTYPE html>
<html>
<head>
<title>HTML5/JS Poject1</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<script src="http://code.jquery.com/jquery-2.0.2.min.js"></script> <!-- needed to run jQuery stuff -->
<script src="script.js" type="text/javascript"></script>
</head>
<body>
<div id='unit'></div>