Mourtz / glsl-tone-map

A collection of tone mapping GLSL functions, available as modules for glslify.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

glsl-tone-map frozen

A collection of tone mapping GLSL functions, available as modules for glslify. Mostly taken from here and here.

Installation

npm install glsl-tone-map

NPM

Usage

#pragma glslify: aces = require(glsl-tone-map/aces)
#pragma glslify: uncharted2 = require(glsl-tone-map/uncharted2)
#pragma glslify: lottes = require(glsl-tone-map/lottes)
#pragma glslify: reinhard = require(glsl-tone-map/reinhard)
#pragma glslify: reinhard2 = require(glsl-tone-map/reinhard2)
#pragma glslify: uchimura = require(glsl-tone-map/uchimura)
#pragma glslify: filmic = require(glsl-tone-map/filmic)
#pragma glslify: unreal = require(glsl-tone-map/unreal)

void main() {
	// ...
	color.rgb = aces(color.rgb);
	color.rgb = uncharted2(color.rgb);
	color.rgb = lottes(color.rgb);
	color.rgb = reinhard(color.rgb);
	color.rgb = reinhard2(color.rgb);
	color.rgb = uchimura(color.rgb);
	color.rgb = filmic(color.rgb);
	color.rgb = unreal(color.rgb);
}

License

MIT. See license file.

About

A collection of tone mapping GLSL functions, available as modules for glslify.

License:MIT License


Languages

Language:GLSL 100.0%