forest-image

AGAL

Adobe Graphics Assembly Language (AGAL) is an assembly language for writing GPU shaders.[26] AGAL was invented by Adobe to provide a unified shader language for all platforms.[26] AGAL programs are written by hand with low-level opcodes and registers.[26] AGAL programs are compiled into bytecode which is then embedded into Flash SWF movies.[26] This AGAL bytecode is automatically compiled into OpenGL GLSL Shaders and DirectX HLSL Shaders by Adobe Flash Player, depending on the platform.[26]

TEST

With AGAL, developers can write shaders that transform 3D models on the GPU (vertex shader), and shaders that render complex dynamic lighting effects on the GPU (pixel shader). AGAL also allows high-quality texture rendering with mip-mapping.[27] AGAL is used extensively in Flash game engines such as Away3D and Flare3D for various effects. AGAL is commonly used to provide dynamic lighting, high dynamic ranging (HDR), alpha masking, multipass rendering, displacement mapping, and environment mapping.[28][29] Flare3D extends AGAL with a proprietary Shader language called FLSL (FLare3D Shader Language), that makes writing Shader programs easier.[29] HLAG is another example of a high-level Shader language that compiles into AGAL.[30]