This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
#include <windows.h> | |
#include <algorithm> | |
int main() { | |
HANDLE handleFile = CreateFileA("E:/1/build/001114-0452-03.jpg", | |
GENERIC_READ | GENERIC_WRITE, | |
FILE_SHARE_WRITE, | |
NULL, | |
OPEN_EXISTING, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Author: Sergey Kosarevsky [email protected] | |
#pragma once | |
#include "glslang/Include/ShaderTypes.h" | |
#include "glslang/Include/ResourceLimits.h" | |
#include "glslang/MachineIndependent/Versions.h" | |
typedef void* ShaderHandle; | |
typedef void* ProgramHandle; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef GL_ES | |
precision highp float; | |
#endif | |
uniform sampler2D from, to; | |
uniform float progress; | |
uniform vec2 resolution; | |
/* | |
(C) Sergey Kosarevsky, 2014 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef GL_ES | |
precision highp float; | |
#endif | |
uniform sampler2D from, to; | |
uniform float progress; | |
uniform vec2 resolution; | |
/* | |
(C) Sergey Kosarevsky, 2014 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef GL_ES | |
precision highp float; | |
#endif | |
uniform float progress; | |
uniform vec2 resolution; | |
uniform sampler2D from; | |
uniform sampler2D to; | |
/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef GL_ES | |
precision highp float; | |
#endif | |
uniform sampler2D from, to; | |
uniform float progress; | |
uniform vec2 resolution; | |
// Adapted by Sergey Kosarevsky from: | |
// http://rectalogic.github.io/webvfx/examples_2transition-shader-pagecurl_8html-example.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef GL_ES | |
precision highp float; | |
#endif | |
uniform sampler2D from; | |
uniform sampler2D to; | |
uniform float progress; | |
uniform vec2 resolution; | |
// http://rectalogic.github.io/webvfx/examples_2transition-shader-pagecurl_8html-example.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef GL_ES | |
precision highp float; | |
#endif | |
uniform sampler2D from, to; | |
uniform float progress; | |
uniform vec2 resolution; | |
// http://rectalogic.github.io/webvfx/examples_2transition-shader-pagecurl_8html-example.html | |
/* |