Skip to content

Instantly share code, notes, and snippets.

View corporateshark's full-sized avatar
🙃

Sergey Kosarevsky corporateshark

🙃
View GitHub Profile
#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,
// Author: Sergey Kosarevsky sk@linderdaum.com
#pragma once
#include "glslang/Include/ShaderTypes.h"
#include "glslang/Include/ResourceLimits.h"
#include "glslang/MachineIndependent/Versions.h"
typedef void* ShaderHandle;
typedef void* ProgramHandle;
@corporateshark
corporateshark / AdvancedMosaic.glsl
Created May 21, 2014 14:45 — forked from glslioadmin/TEMPLATE.glsl
GLSL.io Transition (v1)
#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D from, to;
uniform float progress;
uniform vec2 resolution;
/*
(C) Sergey Kosarevsky, 2014
@corporateshark
corporateshark / Swirl.glsl
Created May 21, 2014 14:43 — forked from glslioadmin/TEMPLATE.glsl
GLSL.io Transition (v1)
#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D from, to;
uniform float progress;
uniform vec2 resolution;
/*
(C) Sergey Kosarevsky, 2014
@corporateshark
corporateshark / DefocusBlur.glsl
Created May 21, 2014 10:12 — forked from glslioadmin/TEMPLATE.glsl
GLSL.io Transition (v1)
#ifdef GL_ES
precision highp float;
#endif
uniform float progress;
uniform vec2 resolution;
uniform sampler2D from;
uniform sampler2D to;
/*
@corporateshark
corporateshark / PageCurl.glsl
Created May 20, 2014 12:37 — forked from glslioadmin/TEMPLATE.glsl
GLSL.io Transition (v1)
#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
@corporateshark
corporateshark / TEMPLATE.glsl
Created May 20, 2014 12:27 — forked from glslioadmin/TEMPLATE.glsl
GLSL.io Transition (v1)
#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
@corporateshark
corporateshark / TEMPLATE.glsl
Created May 20, 2014 12:22 — forked from glslioadmin/TEMPLATE.glsl
GLSL.io Transition (v1)
#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
/*