Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/graphics/TwkGLF/glsl/CloneFrag.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
//
// SPDX-License-Identifier: Apache-2.0
//
#extension GL_ARB_texture_rectangle : require

#if __VERSION__ >= 150
out vec4 FragColor;
#define FRAGCOLOR FragColor
Expand All @@ -11,8 +13,6 @@ out vec4 FragColor;
#define in varying
#endif

#extension GL_ARB_texture_rectangle : require

uniform sampler2DRect texture0; /*texture*/
uniform vec2 cloneOffset;
in vec2 TexCoord0; // paint stroke texcoord [-1, 1]
Expand Down
4 changes: 2 additions & 2 deletions src/lib/graphics/TwkGLF/glsl/EraseFrag.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
//
// SPDX-License-Identifier: Apache-2.0
//
#extension GL_ARB_texture_rectangle : require

#if __VERSION__ >= 150
out vec4 FragColor;
#define FRAGCOLOR FragColor
Expand All @@ -11,8 +13,6 @@ out vec4 FragColor;
#define in varying
#endif

#extension GL_ARB_texture_rectangle : require

uniform vec4 uniformColor;
uniform sampler2DRect texture0; /*original*/
in vec2 TexCoord0; // paint stroke texcoord [-1, 1]
Expand Down
4 changes: 2 additions & 2 deletions src/lib/graphics/TwkGLF/glsl/PaintColoredFrag.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
//
// SPDX-License-Identifier: Apache-2.0
//
#extension GL_ARB_texture_rectangle : require

#if __VERSION__ >= 150
out vec4 FragColor;
#define FRAGCOLOR FragColor
Expand All @@ -11,8 +13,6 @@ out vec4 FragColor;
#define in varying
#endif

#extension GL_ARB_texture_rectangle : require

in vec4 UniformColor;
in vec2 TexCoord0;

Expand Down
4 changes: 2 additions & 2 deletions src/lib/graphics/TwkGLF/glsl/ReplaceFrag.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
//
// SPDX-License-Identifier: Apache-2.0
//
#extension GL_ARB_texture_rectangle : require

#if __VERSION__ >= 150
out vec4 FragColor;
#define FRAGCOLOR FragColor
Expand All @@ -11,8 +13,6 @@ out vec4 FragColor;
#define in varying
#endif

#extension GL_ARB_texture_rectangle : require

uniform vec4 uniformColor;
in vec2 TexCoord0;

Expand Down
4 changes: 2 additions & 2 deletions src/lib/graphics/TwkGLF/glsl/ScaleFrag.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
//
// SPDX-License-Identifier: Apache-2.0
//
#extension GL_ARB_texture_rectangle : require

#if __VERSION__ >= 150
out vec4 FragColor;
#define FRAGCOLOR FragColor
Expand All @@ -11,8 +13,6 @@ out vec4 FragColor;
#define in varying
#endif

#extension GL_ARB_texture_rectangle : require

uniform vec4 uniformColor;
uniform sampler2DRect texture0;
in vec2 TexCoord0; // paint stroke texcoord [-1, 1]
Expand Down
4 changes: 2 additions & 2 deletions src/lib/graphics/TwkGLF/glsl/SoftCloneFrag.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
//
// SPDX-License-Identifier: Apache-2.0
//
#extension GL_ARB_texture_rectangle : require

#if __VERSION__ >= 150
out vec4 FragColor;
#define FRAGCOLOR FragColor
Expand All @@ -11,8 +13,6 @@ out vec4 FragColor;
#define in varying
#endif

#extension GL_ARB_texture_rectangle : require

uniform sampler2DRect texture0; /*texture*/
uniform vec2 cloneOffset;
in vec2 TexCoord0; // paint stroke texcoord [-1, 1]
Expand Down
4 changes: 2 additions & 2 deletions src/lib/graphics/TwkGLF/glsl/SoftEraseFrag.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
//
// SPDX-License-Identifier: Apache-2.0
//
#extension GL_ARB_texture_rectangle : require

#if __VERSION__ >= 150
out vec4 FragColor;
#define FRAGCOLOR FragColor
Expand All @@ -11,8 +13,6 @@ out vec4 FragColor;
#define in varying
#endif

#extension GL_ARB_texture_rectangle : require

uniform vec4 uniformColor;
uniform sampler2DRect texture0; /*original*/
in vec2 TexCoord0; // paint stroke texcoord [-1, 1]
Expand Down
4 changes: 2 additions & 2 deletions src/lib/graphics/TwkGLF/glsl/SoftReplaceFrag.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
//
// SPDX-License-Identifier: Apache-2.0
//
#extension GL_ARB_texture_rectangle : require

#if __VERSION__ >= 150
out vec4 FragColor;
#define FRAGCOLOR FragColor
Expand All @@ -11,8 +13,6 @@ out vec4 FragColor;
#define in varying
#endif

#extension GL_ARB_texture_rectangle : require

uniform vec4 uniformColor;
in vec2 TexCoord0;

Expand Down
4 changes: 2 additions & 2 deletions src/lib/graphics/TwkGLF/glsl/SoftScaleFrag.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
//
// SPDX-License-Identifier: Apache-2.0
//
#extension GL_ARB_texture_rectangle : require

#if __VERSION__ >= 150
out vec4 FragColor;
#define FRAGCOLOR FragColor
Expand All @@ -11,8 +13,6 @@ out vec4 FragColor;
#define in varying
#endif

#extension GL_ARB_texture_rectangle : require

uniform vec4 uniformColor;
uniform sampler2DRect texture0;
in vec2 TexCoord0; // paint stroke texcoord [-1, 1]
Expand Down
4 changes: 2 additions & 2 deletions src/lib/graphics/TwkGLF/glsl/StereoCheckerFrag.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
//
// SPDX-License-Identifier: Apache-2.0
//
#extension GL_ARB_texture_rectangle : require

#if __VERSION__ >= 150
out vec4 FragColor;
#define FRAGCOLOR FragColor
Expand All @@ -11,8 +13,6 @@ out vec4 FragColor;
#define in varying
#endif

#extension GL_ARB_texture_rectangle : require

uniform sampler2DRect texture0;
uniform sampler2DRect texture1;
in vec2 TexCoord0;
Expand Down
4 changes: 2 additions & 2 deletions src/lib/graphics/TwkGLF/glsl/StereoScanlineFrag.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
//
// SPDX-License-Identifier: Apache-2.0
//
#extension GL_ARB_texture_rectangle : require

#if __VERSION__ >= 150
out vec4 FragColor;
#define FRAGCOLOR FragColor
Expand All @@ -11,8 +13,6 @@ out vec4 FragColor;
#define in varying
#endif

#extension GL_ARB_texture_rectangle : require

uniform sampler2DRect texture0;
uniform sampler2DRect texture1;
in vec2 TexCoord0;
Expand Down
4 changes: 2 additions & 2 deletions src/lib/graphics/TwkGLF/glsl/TexRectFrag.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
//
// SPDX-License-Identifier: Apache-2.0
//
#extension GL_ARB_texture_rectangle : require

#if __VERSION__ >= 150
out vec4 FragColor;
#define FRAGCOLOR FragColor
Expand All @@ -11,8 +13,6 @@ out vec4 FragColor;
#define in varying
#endif

#extension GL_ARB_texture_rectangle : require

uniform sampler2DRect texture0;
in vec2 TexCoord0;

Expand Down
Loading