1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-10 14:58:34 +00:00

Tidyup varfont_shader_puzzle (#1629)

* Tidyup `varfont_shader_puzzle`

* Add a rebuild script and a test

* Simplify fragment shaders

* Drop web

* Enable `beta` CI

* make it `beta` inclusive

* Pull out the program loading code
This commit is contained in:
Brett Morgan
2023-02-07 13:59:06 +10:00
committed by GitHub
parent 44f2356073
commit 54950c4284
52 changed files with 244 additions and 702 deletions

View File

@@ -1,15 +1,16 @@
// Copyright 2023 The Flutter team. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#define PI 3.1415926538
layout(location = 0) uniform float uTime;
layout(location = 1) uniform vec2 uSize;
layout(location = 3) uniform float uDampener;
uniform float uTime;
uniform vec2 uSize;
uniform float uDampener;
layout(location = 0) out vec4 fragColor;
out vec4 fragColor;
layout(location = 2) uniform sampler2D uTexture;
uniform sampler2D uTexture;
void main()
{