Skip to content

Interface: ViewportUniforms ​

Experimental

Uniforms for screen-space sizing (see SCREEN_GLSL).

Extended by ​

Indexable ​

ts
[name: string]: IUniform<any>

Experimental

Properties ​

PropertyTypeDescription
uPixelRatioIUniform<number>Experimental Device pixels per CSS pixel.
uResolutionIUniform<Vector2>Experimental Viewport size in CSS pixels.
uViewportIUniform<Vector4>Experimental The GL viewport being drawn into, in device pixels (xy origin, zw size). Fragment shaders use it to turn gl_FragCoord into screen px (see syncViewportUniforms).

Released under the MIT License.