Three.js - Fisheye effect
问题 So, I've messed around with three.js, works out great. The only thing I can't figure out, is how to make a camera with a real fisheye effect. How is that possible? camera.setLens() ? 回答1: The fish eye effect can be achieved using Giliam de Carpentier's shader for lens distortion. Shader code: function getDistortionShaderDefinition() { return { uniforms: { "tDiffuse": { type: "t", value: null }, "strength": { type: "f", value: 0 }, "height": { type: "f", value: 1 }, "aspectRatio": { type: "f",