Author Topic: GLSL Sandbox  (Read 5855 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:

Costigan_Q2

November 11, 2024, 06:41:06 AM
"Stay cozy folks.

Everything is gonna be fine."

There'll be no excuses for having TDS after January 20th, there'll be no excuses AT ALL!!!
 

|iR|Focalor

November 06, 2024, 03:28:50 AM
 

RailWolf

November 05, 2024, 03:13:44 PM
Nice :)

Tom Servo

November 04, 2024, 05:05:24 PM
The Joe Rogan Experience episode 223 that dropped a couple hours ago with Musk, they're talking about Quake lol.

Costigan_Q2

November 04, 2024, 03:37:55 PM
Stay cozy folks.

Everything is gonna be fine.
 

|iR|Focalor

October 31, 2024, 08:56:37 PM

Costigan_Q2

October 17, 2024, 06:31:53 PM
Not activated your account yet?

Activate it now! join in the fun!

Tom Servo

October 11, 2024, 03:35:36 PM
HAHAHAHAHAHA
 

|iR|Focalor

October 10, 2024, 12:19:41 PM
I don't worship the devil. Jesus is Lord, friend. He died for your sins. He will forgive you if you just ask.
 

rikwad

October 09, 2024, 07:57:21 PM
Sorry, I couldn't resist my inner asshole.

Show 50 latest
Welcome, Guest. Please login or register.
November 22, 2024, 01:10:54 AM

Login with username, password and session length