How can I bend a corner of the plane in three.js

Check out AnimatingBookPages from the collection.


See also ColorWave :

function calculateCoordinates( c, t ) { 
	
	vIdx = 0;

	for ( var j = 0; j < lss; j ++ ) {  // length
			
		for ( var i = 0; i < wss; i ++ ) { // width
			
			// --- calculate here the coordinates according to your wishes ---
			
			x = j / 10 - 2;
			y = c * Math.sin(  2 * Math.PI * j / 100  + t );
			z = i  ;
			
			//----------------------------------------------------------------
			
			xyzSet();
			
			vIdx ++;
			
		}
		
	}
	
 }