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 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)); |
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
<!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> |