Source & Demo: rawjet.com/demos/
Język GLSL (Graphics Library Shader Language) to składowa OpenGL/WebGL wykorzystywany jest w kopaniu kryptowalut oraz grafiki komputerowej (pozwala programować GPU). Prezentowany efekcik opiera się na przetwarzaniu obrazu w oparciu o Shader Fragmentów (kolorów pikseli). Shader to program wykonywany na GPU. Najtrudniejszym do napisania było wczytanie tekstur i przesłanie ich do Fragment Shader`a. Nie udało mi się wykorzystać tablicy LUT (look up table) do zapisu pre-kalkulacji, ale w tym przykladzie nie było to konieczne. GPU w przeciwieństwie do CPU może posiadać nie kilka, a kilkadziesiąt tysięcy rdzeni działających rownolegle co czyni go często najszybszym elementem komputera.
GLSL (Graphics Library Shader Language) is a component of OpenGL/WebGL and is used in cryptocurrency mining and computer graphics (it allows GPU programming). The presented effect is based on image processing based on Shader Fragments (pixel colors). A shader is a program executed on the GPU. The hardest thing to write was loading the textures and sending them to the fragment shader. I was unable to use the LUT (look up table) to save pre-calculations, but in this example it was not necessary. The GPU, unlike the CPU, may have not a few, but tens of thousands of cores operating in parallel, which often makes it the fastest element of the computer.
Негізгі бет Ғылым және технология GLSL/WebGL - Image Processing - Stereographic projection © Paweł Drabowicz
Пікірлер: 1