GLSL 0326 4
In this sketch, the core visual effect is driven by the pow function, commonly used in GLSL. pow(x, y) returns x raised to the power of y, and it's especially useful for modifying the contrast or shape of waveforms. Functions like sin and cos output values in the range of −1 to 1, but applying pow—for example, f = pow(sin(...), 3.0)—sharpens the peaks and softens the valleys, giving the wave a more dynamic, energetic feel. This type of nonlinear transformation adds character to otherwise uniform oscillations. When applied to values normalized between 0 and 1, pow can also enhance gradients or emphasize brightness. In GLSL, it’s frequently used for light falloff, glow intensity, and general tonal control. Visualizing pow(sin(x), n) in Graphtoy helps clarify how the shape changes depending on the exponent. For adding expressive form to simple waves, pow is a versatile and powerful tool.
Other Videos By sakkharin
2025-03-30 | MMT, Keynes, and the Tax Puzzle |
2025-03-30 | A formula that symbolizes the essence of LLMs and information theory |
2025-03-30 | sakkharin is live |
2025-03-28 | MagicaVoxel & Three.js: File Compatibility Explained shorts |
2025-03-28 | Sora Interlude. 0322 3 No Flubs - Surf Ninja |
2025-03-28 | LOFAS |
2025-03-28 | color theory history |
2025-03-28 | interlude 0320 5 |
2025-03-28 | WHAT IF 0328 1 |
2025-03-27 | GLSL 2*(1.0+sin(x))*pow(cos(x-atan2(sin(t)*4,1)*2.0),2.) |
2025-03-27 | GLSL 0326 4 |
2025-03-27 | Spinning Sphere in 3D with p5.js |
2025-03-27 | Mathematicians Klein and Hilbert – The Joy of the Concrete and the Abstract |
2025-03-26 | Wavelet transform |
2025-03-26 | LLM Natures |
2025-03-26 | "Reascending Jinggang Mountain" and Its Lasting Influence |
2025-03-26 | Digesting Duck the philosopher Immanuel Kant |
2025-03-26 | nations glorified the fallen as heroes |
2025-03-25 | Relative references must start with either "/", "./", or "../". |
2025-03-25 | 0325 2 #assemblyscript asm.js WebAssembly |
2025-03-24 | Discover Plato's Unique Dialogue Style! #beginners |