shader

A small program that runs on the GPU to compute vertex positions and pixel colors in a 3D scene.

2 articlesLast mentioned

A shader is a program in computer graphics that runs on the GPU to compute the shape and color of a scene as it is drawn to the screen. The basic types are the vertex shader, which transforms vertex positions, and the fragment shader (pixel shader), which determines the final color of each pixel; lighting, materials, shadows and post-processing effects are mostly implemented as shaders.

Shaders are written in dedicated languages such as GLSL and HLSL. On the web, WebGL runs shaders written in GLSL and WebGPU runs shaders written in WGSL. Libraries such as Three.js ship common materials and lighting as prebuilt shaders, so developers can build 3D scenes without writing shaders themselves. Beyond graphics, compute shaders are also used for general-purpose computation on the GPU.

This entry is based on AIPOST articles and widely known facts. If something is wrong, please send us a correction request.

Articles covering this entry

  • Gyro-M vs. Gyro-S on a 16GB GPU: Higher Scores, Similar Coding ResultsAI Performance ·

    Gyro-M builds colored houses, a wooden pier, small boats, shoreline water shaders and seagulls that circle overhead, all without mid-run steering.

    Read article
  • Claude Opus 5.5 Plan-and-Judge Workflow Turns Prompts Into a 3D WebsiteAI in Practice ·

    It mentioned no frameworks, no WebGL, no shaders and no Three.js.

    Read article

Found a mistake or missing an entry?

Wiki entries are based on AIPOST articles and widely known facts. If an entry is wrong, send us a correction request and we will check and fix it. Names from new articles are added to the wiki after the article is published.