зеркало из https://github.com/mozilla/gecko-dev.git
22 строки
982 B
GLSL
22 строки
982 B
GLSL
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
flat varying vec2 vTextureOffsetY; // Offset of the y plane into the texture atlas.
|
|
flat varying vec2 vTextureOffsetU; // Offset of the u plane into the texture atlas.
|
|
flat varying vec2 vTextureOffsetV; // Offset of the v plane into the texture atlas.
|
|
flat varying vec2 vTextureSizeY; // Size of the y plane in the texture atlas.
|
|
flat varying vec2 vTextureSizeUv; // Size of the u and v planes in the texture atlas.
|
|
flat varying vec2 vStretchSize;
|
|
flat varying vec2 vHalfTexelY; // Normalized length of the half of a Y texel.
|
|
flat varying vec2 vHalfTexelUv; // Normalized length of the half of u and v texels.
|
|
|
|
flat varying mat3 vYuvColorMatrix;
|
|
|
|
#ifdef WR_FEATURE_TRANSFORM
|
|
varying vec3 vLocalPos;
|
|
flat varying vec4 vLocalRect;
|
|
#else
|
|
varying vec2 vLocalPos;
|
|
#endif
|