예제 프레임버퍼 흐림(Framebuffer Blur)

프레임버퍼 흐림(Framebuffer Blur)

이 예제에서 사용하는 셰이더p5.Framebuffer로부터의 깊이 정보를 사용하여 흐림 효과를 적용합니다. 실제 카메라에서, 렌즈의 초점보다 가깝거나 멀리있는 물체는 흐릿하게 보입니다. 이는 그 효과를 모방합니다. 먼저, 스케치는 프레임버퍼에 다섯 개의 구체를 렌더링합니다. 그 다음, 흐림 셰이더를 사용하여 프레임버퍼를 캔버스에 렌더링합니다.

Creative Commons BY-NC-SA license badge

프레임버퍼 흐림(Framebuffer Blur): 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!