Skip to content

ewdlop/ShadersNote

Repository files navigation

Shaders Note

image

Source: https://www.youtube.com/watch?v=dhuigO4A7RY&t=1246s

Demo: https://www.shadertoy.com/view/lcsGW7

BezierCurve

Source: https://www.youtube.com/watch?v=a4zMX6dDVXI

Demo: https://www.shadertoy.com/view/Xfs3RX

Shader Descriptions

BezierCurve.glsl

Contains functions for drawing circles, lines, and Bezier curves, including cubic Bezier curves. The mainImage function uses these to create a dynamic image.

Source: BezierCurve.glsl

fractal.glsl

Generates a fractal pattern using a series of transformations and reflections, with color based on distance from a central point.

Source: fractal.glsl

grid.glsl

Creates a grid pattern with stars at the intersections, using a rotation matrix and a star function.

Source: grid.glsl

KochCurve.glsl

Generates a Koch curve fractal pattern, with color based on distance from the curve and textures applied.

Source: KochCurve.glsl

light.glsl

Creates a light effect with a central bright spot that fades outwards.

Source: light.glsl

parametric-curve.vs

Generates a parametric curve using sine and cosine functions, with color based on proximity to the curve.

Source: parametric-curve.vs

shaderToySample.glsl

Generates a dynamic color pattern based on time and pixel coordinates.

Source: shaderToySample.glsl

star.glsl

Creates a star pattern with rays and a central bright spot, using a rotation matrix.

Source: star.glsl

starGridRandomPosition.glsl

Generates a grid of stars with random positions and sizes, using a hash function for randomness.

Source: starGridRandomPosition.glsl

starGridWithNoise.glsl

Creates a grid of stars with added noise for randomness, using a hash function.

Source: starGridWithNoise.glsl

starRandomPositionRandomColor.vs

Generates stars with random positions, sizes, and colors, using a hash function for randomness.

Source: starRandomPositionRandomColor.vs

stars.glsl

Creates a layered star field with depth and parallax effects, using a hash function for randomness and a rotation matrix.

Source: stars.glsl

verticalStripe.glsl

Generates a vertical stripe pattern with color based on the x-coordinate.

Source: verticalStripe.glsl