Commit dabc6661 by andrewlewis Committed by Ian Baker

Add comments describing shader programs

PiperOrigin-RevId: 425885803
parent 5144b740
......@@ -11,6 +11,10 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Fragment shader that samples from an external texture with uTexSampler,
// copying from this texture to the current output.
#extension GL_OES_EGL_image_external : require
precision mediump float;
uniform samplerExternalOES uTexSampler;
......
......@@ -12,6 +12,13 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ES 3 fragment shader that samples from an external texture with uTexSampler,
// copying from this texture to the current output while applying the specified
// color transform uColorTransform, which should be a YUV to RGB conversion
// matrix. The sampler uses the using the EXT_YUV_target extension:
// https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_YUV_target.txt.
#extension GL_OES_EGL_image_external : require
#extension GL_EXT_YUV_target : require
precision mediump float;
......
......@@ -11,6 +11,10 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Vertex shader that applies the 4 * 4 transformation matrix
// uTransformationMatrix.
attribute vec4 aFramePosition;
attribute vec4 aTexCoords;
uniform mat4 uTexTransform;
......
......@@ -12,6 +12,10 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ES 3 vertex shader that applies the 4 * 4 transformation matrix
// uTransformationMatrix.
in vec4 aFramePosition;
in vec4 aTexCoords;
uniform mat4 uTexTransform;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment