Author Topic: GLSL Sandbox  (Read 6062 times)

Offline quadz

  • Loquaciously Multiloquent Member
  • ****
  • Posts: 5352
    • View Profile
  • Rated:
GLSL Sandbox
« on: December 10, 2013, 02:00:43 PM »
Really nifty site for demoing and experimenting with GLSL shaders in WebGL in the browser:

http://glsl.heroku.com/

Note: Some these failed to work for me in Firefox, but they all worked great in Chrome.

These shaders run entirely on the GPU, even the ones that have logic where the camera flies through the scene.

Some of them really gave my GPU a workout. With an aggressive fan curve, the core temp stayed under 70c, but it was exhausting heat like a mini blast furnace.

Haven't seen all the demos yet but here are some favorites so far:

(Note, the numeric 0.5/1/2/4/8 pulldown menu to the right of the "hide code" button seems to change the shader resolution, the higher the number, the lower the resolution factor... Generally for best results make the number as low as possible without compromising framerate.)

An on-GPU raytracer: http://glsl.heroku.com/e#12290.0  (looks especially nice at 0.5 resolution, though my GPU can't quite hack it at 60Hz with 0.5 resolution at a full 1920x1080... gets slightly choppy in fullscreen... otherwise, glassy smooth)

Grassy rolling hills, sun, lens flare: http://glsl.heroku.com/e#12543.1

Procedural height map fly-though (including trees and translucent water)  http://glsl.heroku.com/e#12007.0

Realtime perlin noise: http://glsl.heroku.com/e#12666.0

Procedural apple and wooden table: http://glsl.heroku.com/e#12645.0

Cellular automata: http://glsl.heroku.com/e#12630.6  (apparently it's reading/writing to a 2D texture to store its state)

Sort of a 3D fractal? http://glsl.heroku.com/e#12578.0

Kinda like something out of Tron: http://glsl.heroku.com/e#12470.1

"My god! it's full of stars." http://glsl.heroku.com/e#12221.0

etc.


BTW, you can tweak the code in the editor, and it will auto-recompile the shader so you can immediately see the result.


:beer:


Edit: A few more...

http://glsl.heroku.com/e#11706.0  <- "the other road to hell"

http://glsl.heroku.com/e#11557.2  <- solar system

http://glsl.heroku.com/e#11473.0  <- shader invaders!

http://glsl.heroku.com/e#11414.0  <- coffee cup(s) on table, mouse moves light source


« Last Edit: December 13, 2013, 06:47:43 PM by quadz »
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
"He knew all the tricks, dramatic irony, metaphor, bathos, puns, parody, litotes and... satire. He was vicious."

Offline Jay Dolan

  • Swanky Member
  • *****
  • Posts: 644
    • View Profile
    • Quetoo.org
  • Rated:
Re: GLSL Sandbox
« Reply #1 on: December 10, 2013, 03:44:54 PM »
Those are ridiculous! Very cool, thanks for sharing.

 

El Box de Shoutamente

Last 10 Shouts:

 

|iR|Focalor

April 02, 2025, 02:47:07 AM
 

Yotematoi

February 14, 2025, 12:41:48 PM
 :-*
 

|iR|Focalor

February 13, 2025, 07:31:24 AM
I was on DM this morning for the first time in a pretty long time. Seemed fine to me.

0rbisson

February 13, 2025, 04:54:21 AM
DM server is fucked. 2 point blank rockets from spawn and lava damage and player survived? WTF?" Also someone has fucked with the spawn points, every single time no matter how big the map you spawn right in front of the person who killed you last
 

rikwad

February 08, 2025, 10:48:18 PM
Seattle FFA now has working HTTP downloads. Thanks Unholy!
 
RIP Pepp   ✟
 
 

-Unh0ly-

February 03, 2025, 01:20:14 AM
vvvALL WEAPS HAVE MUZZLE FLASH vvvv
 

|iR|Focalor

December 25, 2024, 12:15:35 AM
 

|iR|Focalor

December 25, 2024, 12:06:54 AM
 

RailWolf

December 23, 2024, 09:15:50 AM
Fixed the image for you =)
And Die Hard is a great Christmas movie

Show 50 latest
Welcome, Guest. Please login or register.
April 18, 2025, 11:32:47 PM

Login with username, password and session length