how to make a fog effect or blur effect in canvas with js?
问题 I'm using javascript and THREE.js 3d engine, and I want to do a fog effect, here's an example http://mrdoob.github.com/three.js/examples/webgl_geometry_terrain_fog.html but it only support WebGL , so is there any way to simulate fog effect , or a blur effect with javascript and canvas? thanks alot. 回答1: Three.js is WebGL. The example you're looking at is created by the same person who made three.js. Three.js supports fog already with scene.fog . https://github.com/mrdoob/three.js/wiki/API