All Projects → dmnsgn → glsl-tone-map

dmnsgn / glsl-tone-map

Licence: MIT license
A collection of tone mapping functions available both as ES modules strings and as GLSL files for use with glslify.

Programming Languages

GLSL
2045 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to glsl-tone-map

Gl React
gl-react – React library to write and compose WebGL shaders
Stars: ✭ 2,536 (+2086.21%)
Mutual labels:  glsl
Js
turbo.js - perform massive parallel computations in your browser with GPGPU.
Stars: ✭ 2,591 (+2133.62%)
Mutual labels:  glsl
Arcane Engine
3D C/C++ Game Engine - Created By Brady Jessup
Stars: ✭ 242 (+108.62%)
Mutual labels:  glsl
Bsnes Hd
bsnes fork that adds HD video features
Stars: ✭ 216 (+86.21%)
Mutual labels:  glsl
Glsl Fxaa
FXAA implementation for glslify in WebGL
Stars: ✭ 225 (+93.97%)
Mutual labels:  glsl
Partikel accelleration on gpu
Particle accelleration with OpenGL 4.3, using the compute shader to calculate particle movement on graphics hardware.
Stars: ✭ 236 (+103.45%)
Mutual labels:  glsl
Glslviewer
Console-based GLSL Sandbox for 2D/3D shaders shaders
Stars: ✭ 2,834 (+2343.1%)
Mutual labels:  glsl
ue4-uitween
Unreal 4 UMG UI tweening plugin in C++
Stars: ✭ 178 (+53.45%)
Mutual labels:  unreal
Nesc Snesc Modifications
All of your NES-SNES-Playstation Classic Modification Needs!
Stars: ✭ 229 (+97.41%)
Mutual labels:  glsl
Shadered
Lightweight, cross-platform & full-featured shader IDE
Stars: ✭ 3,247 (+2699.14%)
Mutual labels:  glsl
Unitythirdpersontutorial
Sample project showing third person camera behavior and Mecanim animations
Stars: ✭ 220 (+89.66%)
Mutual labels:  glsl
Frontend Boilerplate
An ES20XX starter with common frontend tasks using Webpack 4 as module bundler and npm scripts as task runner.
Stars: ✭ 224 (+93.1%)
Mutual labels:  glsl
Simplegodotcrtshader
A simple Godot shader that simulates CRT Displays
Stars: ✭ 236 (+103.45%)
Mutual labels:  glsl
Unity
Unity Resource Pack [Vanilla Minecraft Only]
Stars: ✭ 213 (+83.62%)
Mutual labels:  glsl
Pmfx Shader
Cross platform shader system for HLSL, GLSL, Metal and SPIR-V.
Stars: ✭ 245 (+111.21%)
Mutual labels:  glsl
Magicshader
🔮 Tiny helper for three.js to debug and write shaders
Stars: ✭ 205 (+76.72%)
Mutual labels:  glsl
Godot Realistic Water
Godot - Realistic Water Shader
Stars: ✭ 235 (+102.59%)
Mutual labels:  glsl
PyGLM
Fast OpenGL Mathematics (GLM) for Python
Stars: ✭ 167 (+43.97%)
Mutual labels:  glsl
shady
A GTK+ shader editor, that aims for Shadertoy.com compatibility (and more…)
Stars: ✭ 22 (-81.03%)
Mutual labels:  glsl
Tls prober
A tool to fingerprint SSL/TLS servers
Stars: ✭ 238 (+105.17%)
Mutual labels:  glsl

glsl-tone-map

npm version stability-stable npm minzipped size dependencies types Conventional Commits styled with prettier linted with eslint license

A collection of tone mapping functions available both as ES modules strings and as GLSL files for use with glslify. Mostly taken from here and here.

paypal coinbase twitter

Installation

npm install glsl-tone-map

Usage

ESM

import * as glslToneMap from "glsl-tone-map";

const shader = /* glsl */ `
${glslToneMap.ACES}
${glslToneMap.FILMIC}
${glslToneMap.LOTTES}
${glslToneMap.REINHARD}
${glslToneMap.REINHARD2}
${glslToneMap.UCHIMURA}
${glslToneMap.UNCHARTED2}
${glslToneMap.UNREAL}

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

glslify

#pragma glslify: aces = require(glsl-tone-map/aces)
#pragma glslify: filmic = require(glsl-tone-map/filmic)
#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: uncharted2 = require(glsl-tone-map/uncharted2)
#pragma glslify: unreal = require(glsl-tone-map/unreal)

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

License

MIT. See license file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].