Follow me on Twitter Follow me on GitHub
Chandler Prall Thoughts & Experiments for the Web

Category Archives: Programming

Constructive solid geometry with Three.js

A few days ago Evan Wallace released his Constructive solid geometry library for WebGL. This library uses Boolean operations (addition, subtraction, union, intersect) to be applied on 3D geometry such as cubes, spheres, or anything else you can throw at … Continue reading

RegEx for truncating & trimming

I’m always a bit excited after writing a fairly succinct-yet-powerful regular expression, so I thought I’d take a short break from the WebGL topics for this tidbit: This magical regex will trim & truncate text down to 20 characters without … Continue reading

Steep Parallax Shader

View demo. After my last post about a basic parallax shader I have been working on implenting a steep parallax shader in WebGL. This shader is a lot more computationally intense than normal parallax because it uses ray tracing to … Continue reading

Parallax Shader for WebGL / ThreeJS

View demo. Update 8/22/2011: I have updated the vertex/fragment shaders so they work with rotated/positioned objects. Previous version especially didn’t like rotations. Two additional demos have been added as well to show how the scale/bias can be used to change … Continue reading