iResolution
iResolution is a uniform variable used in shader programming, most notably in the Shadertoy web platform, to convey the rendering canvas resolution to a fragment shader. Implemented as a three-component vector (vec3), its components are typically used as follows: iResolution.x is the width in pixels, iResolution.y is the height, and iResolution.z is either set to 1.0 or used by some environments to encode additional data such as aspect or a device-dependent parameter.
Purpose and usage: By exposing the current output size, iResolution allows shader code to compute normalized
Origins and scope: The variable originated with Shadertoy, where it is provided by the host environment and
Variations and related terms: Some engines provide analogous uniforms, such as Unity’s _ScreenParams, which exposes width,