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:
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user