• Stars
    star
    1
  • Language GLSL
  • License
    Other
  • Created almost 9 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Extract function definitions from an array of GLSL tokens.

More Repositories

1

glslify

A node.js-style module system for GLSL! ✨
JavaScript
2,198
star
2

glsl-easings

Robert Penner's easing functions in GLSL, available as a module for glslify.
JavaScript
422
star
3

glslify-loader

💾 glslify loader module for webpack
JavaScript
221
star
4

glsl-aastep

anti-alias smoothstep utility function
GLSL
129
star
5

glsl-colormap

colormaps for glsl shaders
JavaScript
58
star
6

glsl-hash-blur

a blur effect based on random hash offset
GLSL
55
star
7

rollup-plugin-glslify

Import GLSL strings with glslify
JavaScript
55
star
8

glsl-tokenizer

r/w stream of glsl tokens
JavaScript
51
star
9

babel-plugin-glslify

🐠 Babel transform for glslify
JavaScript
49
star
10

glsl-ggx

glsl ggx lighting model
JavaScript
44
star
11

glsl-smooth-min

Smooth minimum functions for GLSL
C
40
star
12

glsl-circular-arc

draw anti-aliased circular arcs in a shader with glslify
JavaScript
40
star
13

glsl-halftone

a halftone effect in GLSL
GLSL
35
star
14

glsl-raytrace

🌈 Given a signed distance function and ray, trace a scene to find the first point of intersection.
JavaScript
35
star
15

glsl-inverse

Invert a matrix in GLSL
C
35
star
16

glsl-perturb-normal

perturb normal from a normal map
GLSL
35
star
17

glsl-proj4

proj4 coordinate transforms in glsl
JavaScript
34
star
18

glslify-hex

A transform stream for glslify that replaces CSS-style hexadecimal colors with `vec3/vec4` definitions.
JavaScript
33
star
19

glsl-specular-cook-torrance

Calculates the specular/fresnel power in the Cook-Torrance model
HTML
31
star
20

glsl-face-normal

approximate face normal in the fragment shader
GLSL
29
star
21

glsl-look-at

👀 Generates a 3D lookAt matrix in GLSL
JavaScript
27
star
22

glsl-diffuse-oren-nayar

Oren-Nayar diffuse lighting for GLSL
JavaScript
26
star
23

glsl-camera-ray

📷 Generates a ray for Shadertoy-style raycasting in GLSL
JavaScript
22
star
24

glslify-import

A transform stream for glslify that adds an `import` directive to your shaders.
JavaScript
21
star
25

glslify-optimize

A browserify transform stream that optimizes your glslify shaders
JavaScript
20
star
26

glsl-gamma

gamma-to-linear convenience utilities
GLSL
16
star
27

glsl-combine-chamfer

Combine two signed distance fields with a chamfer-like join.
HTML
16
star
28

glsl-diffuse-lambert

Lambertian diffuse lighting model for GLSL
JavaScript
16
star
29

glslify-fancy-imports

✨ glslify transform that provides you with a cleaner module import/export syntax
JavaScript
14
star
30

glsl-token-function-shaker

✂️ Shakes out any unused functions from your GLSL shaders
GLSL
13
star
31

glsl-ruler

📐 Helper module for debugging raytraced SDFs
GLSL
12
star
32

glsl-specular-beckmann

Beckmann distribution for specular power
JavaScript
12
star
33

glsl-specular-phong

Specular power from Phong distribution
JavaScript
11
star
34

glsl-transpose

Transpose a matrix in GLSL
JavaScript
11
star
35

glsl-specular-blinn-phong

GLSL for specular weight in Blinn-Phong lighting model
JavaScript
11
star
36

glsl-specular-ward

Ward anisotropic specular model for GLSL
JavaScript
10
star
37

glsl-cartesian-to-barycentric

glslify module to convert cartesian to barycentric coordinates
JavaScript
10
star
38

glslify-bundle

Bundle a glslify-deps dependency tree into a GLSL source string
JavaScript
10
star
39

glsl-specular-gaussian

Guassian specular model in GLSL
JavaScript
9
star
40

glsl-sdf-sphere

GLSL SDF function for generating a sphere
HTML
9
star
41

glsl-scale-linear

A linear scale for glslify
GLSL
8
star
42

glsl-sdf-normal

Get the normal vector of a position within a signed distance field.
HTML
8
star
43

glsl-scale-log

A logarithmic scale for glslify
GLSL
7
star
44

glsl-combine-smooth

Smoothly combine two signed distance fields.
HTML
7
star
45

glsl-sdf-box

HTML
7
star
46

glsl-pi

π available at your convenience for use within glslify
GLSL
7
star
47

glsl-proj4-camera

use proj4 strings to map lonlat geometry to screen coordinates in a shader
JavaScript
6
star
48

glslify-deps

Walk the dependency graph of a glslify shader
JavaScript
6
star
49

glsl-turntable-camera

Convenience module for GLSL raytracing that provides a turntable camera for your scene.
HTML
6
star
50

glsl-proj4-texture

pre-calculate proj4 coordinate transformations as a texture
JavaScript
6
star
51

glsl-token-string

converts an array of GLSL tokens to a plain GLSL source string
JavaScript
5
star
52

glsl-frobenius

Computes the Frobenius norm of a matrix in GLSL
JavaScript
5
star
53

glsl-determinant

Computes the determinant of a matrix in GLSL
JavaScript
5
star
54

glslify-stream

create a readable stream of glsl ast nodes that produce a module system
JavaScript
5
star
55

glslify-detective

Find all require calls within a glslify file
JavaScript
5
star
56

glslify-promise

A Promise wrapper for glslify, providing a consistent interface between both Node.js and browserify.
JavaScript
5
star
57

glslify-client

Convenience wrapper for handling glslify on the client, minimising the amount of requests to glslify-deps
JavaScript
3
star
58

glsl-shader-name

Extract a shader's name from its source
JavaScript
3
star
59

glsl-token-descope

JavaScript
3
star
60

glsl-token-assignments

Take an array of GLSL tokens and determine which tokens are either assignments or variable definitions.
JavaScript
2
star
61

glsl-token-scope

Infer the scope of each token in an array of GLSL tokens
JavaScript
2
star
62

glslify-resolve-remote

A replacement resolver function for glslify that lets you automatically pull in GLSL modules from npm
JavaScript
2
star
63

glslify-require

var src = require('./shader.glsl')
JavaScript
2
star
64

glsl-token-properties

JavaScript
2
star
65

glsl-token-depth

Determine the scope depth of an array of GLSL tokens
JavaScript
2
star
66

glsl-token-macros

Extract macro preprocessor statements from an array of GLSL tokens.
JavaScript
1
star
67

glsl-token-whitespace-trim

Trim the whitespace within an array of GLSL tokens
JavaScript
1
star
68

glsl-token-defines

JavaScript
1
star
69

glsl-token-extension-dedupe

Given a series of GLSL tokens, dedupes any extension declarations and places them at the top of the shader source
JavaScript
1
star