Samplers

A sampler provides access to a dart:ui Image object.
This image can be acquired either from a decoded image
or from part of the application using
Scene.toImageSync or Picture.toImageSync.

#include

<flutter/runtime_effect.glsl>

uniform

vec2

uSize

uniform

sampler2D

uTexture

out

vec4

fragColor

void

main

()

vec2

uv

FlutterFragCoord

().

xy

uSize

fragColor

texture

uTexture

uv

);