実例 フレームバッファぼかし

フレームバッファぼかし

この例の シェーダー は、p5.Framebuffer からの深度情報を使用してぼかしを適用します。実際のカメラでは、オブジェクトはレンズの焦点よりも近いか遠い場合にぼやけて見えます。これをシミュレートしています。まず、スケッチは5つの球体をフレームバッファに描画します。次に、ぼかしシェーダーを使用してフレームバッファをキャンバスに描画します。

Creative Commons BY-NC-SA license badge

フレームバッファぼかし: Revised by Caleb Foss. Edited and maintained by p5.js Contributors and Processing Foundation. Licensed under CC BY-NC-SA 4.0.

You can find the code history of these examples here: pre-2023 example, 2023 code. You can suggest improvements by contributing to the current website!