kbinani / Colormap Shaders
Licence: mit
A collection of shaders to draw color maps.
Stars: ✭ 315
Projects that are alternatives of or similar to Colormap Shaders
Shaderconductor
ShaderConductor is a tool designed for cross-compiling HLSL to other shading languages
Stars: ✭ 1,146 (+263.81%)
Mutual labels: opengl, glsl, shader, metal
Ouzel
C++ game engine for Windows, macOS, Linux, iOS, tvOS, Android, and web browsers
Stars: ✭ 607 (+92.7%)
Mutual labels: opengl, glsl, metal
Bonzomatic
Live shader coding tool and Shader Showdown workhorse
Stars: ✭ 829 (+163.17%)
Mutual labels: opengl, glsl, shader
Pmtech
Lightweight, multi-platform, data-oriented game engine.
Stars: ✭ 478 (+51.75%)
Mutual labels: opengl, glsl, metal
Tess Opt
Demonstration of how we can use tessellation shaders to make faster fragment shaders.
Stars: ✭ 13 (-95.87%)
Mutual labels: opengl, glsl, shader
3d Game Shaders For Beginners
🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.
Stars: ✭ 11,698 (+3613.65%)
Mutual labels: opengl, glsl, shader
Crossshader
⚔️ A tool for cross compiling shaders. Convert between GLSL, HLSL, Metal Shader Language, or older versions of GLSL.
Stars: ✭ 113 (-64.13%)
Mutual labels: opengl, glsl, metal
DuEngine
An efficient interactive C++ renderer for ShaderToy-alike demos with 2D/3D/CubeMap/Video/Camera/LightField/Volume textures. (Partially used in my I3D 2018 papers)
Stars: ✭ 62 (-80.32%)
Mutual labels: glsl, shader
AndroidGLKit
AndroidGLKit provides OpenGL ES 2.0 boilerplate codes for Android.
Stars: ✭ 22 (-93.02%)
Mutual labels: glsl, shader
ios-spritekit-shader-sandbox
👾 Collection of custom effects for SpriteKit implemented using GLSL/Metal shaders.
Stars: ✭ 63 (-80%)
Mutual labels: glsl, shader
glsl-cos-palette
glsl function for making cosine palettes
Stars: ✭ 26 (-91.75%)
Mutual labels: glsl, shader
shaping-functions
Visualisation of shaping functions
Stars: ✭ 75 (-76.19%)
Mutual labels: glsl, shader
ShaderBoy
Simple text editor that lets you write Shadertoy shaders more comfortably, anytime, anywhere.
Stars: ✭ 133 (-57.78%)
Mutual labels: glsl, shader
MTTransitions
iOS Transitions ports from GL-Transitions.
Stars: ✭ 178 (-43.49%)
Mutual labels: metal, glsl
GLSLShaderShrinker
Optimizes the size of GLSL shader code.
Stars: ✭ 39 (-87.62%)
Mutual labels: glsl, shader
ProcessingStuff
Various pretty-ish Processing sketches by Odditica. About 50% shaders.
Stars: ✭ 164 (-47.94%)
Mutual labels: glsl, shader
colormap-shaders
A collection of shaders to draw color map like this:
usage
Each *.frag
shader sources provides a colormap
function, which takes an float
argument x
(x
should be: 0.0 <= x <= 1.0
). The colormap
function returns a vec4
value which represents an RGBA color.
vec4 colormap(float x);
void main() {
gl_FragColor = colormap(gl_TexCoord[0].x);
}
/* include "shaders/rainbow.frag" here, for example. */
special case
gnuplot.frag
This shader emulates gnuplot
's rgbformulae
, and the signature of colormap
is:
vec4 colormap(float x, int red_type, int green_type, int blue_type);
It takes additional 3 arguments, with same meanings to rgbformulae
's 3 arguments respectively.
usage from c++
#include <colormap/colormap.h>
#include <iostream>
int main()
{
using namespace colormap;
// Print RGB table of MATLAB::Jet colormap.
MATLAB::Jet jet;
std::cout << "category: " << jet.getCategory() << std::endl;
std::cout << "title: " << jet.getTitle() << std::endl;
int const size = 256;
for (int i = 0; i < size; ++i) {
float const x = i / (float)size;
Color c = jet.getColor(x);
std::cout << x << "\t" << c.r << "\t" << c.g << "\t" << c.b << std::endl;
}
// Dump category and title of all colormaps.
for (std::shared_ptr<Colormap const> const& c : ColormapList::getAll()) {
std::cout << c->getCategory() << " : " << c->getTitle() << std::endl;
}
return 0;
}
samples
MATLAB
name | sample |
---|---|
MATLAB_autumn | |
MATLAB_bone | |
MATLAB_cool | |
MATLAB_copper | |
MATLAB_hot | |
MATLAB_hsv | |
MATLAB_jet | |
MATLAB_parula | |
MATLAB_pink | |
MATLAB_spring | |
MATLAB_summer | |
MATLAB_winter |
gnuplot
name | sample |
---|---|
rgbformulae(7, 5, 15) | |
rgbformulae(3, 11, 6) | |
rgbformulae(23, 28, 3) | |
rgbformulae(21, 22, 23) | |
rgbformulae(30, 31, 32) | |
rgbformulae(33, 13, 10) | |
rgbformulae(34, 35, 36) |
IDL
transform
transform
name | sample |
---|---|
kbinani_altitude |
license
The MIT License. See 'LICENSE' file for detail.
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].