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

Today at 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.
 

Costigan_Q2

October 09, 2024, 01:35:05 PM
Et tu rikwad?

Please don't feed the degenerate lies of a sexually-perverted devil-worshipping barking dog like Focalor.
 

RyU

October 09, 2024, 07:21:23 AM
lol
Been here since 2006


But I don’t mean you personally

By you I meant WE all suck at Q2
I guess I was just trying to be funny …

 
 

Costigan_Q2

October 08, 2024, 06:16:31 PM
Who the fuck are you?

Stop feeding degenerate lies, there are too many liberals and commies in this filthy rotting husk of a gaming community as it is.
 

RyU

October 08, 2024, 06:18:00 AM
whether you want to be a man a woman, a women that wants to be a man, a man that wants to be a woman,
a broom,
a mop,
Or even a horse,
Just know you still suck at Q2 ..  ;)
 

RyU

October 08, 2024, 02:38:09 AM
Some funny shit  :D
 

Costigan_Q2

October 06, 2024, 03:09:02 PM
Members
Total Members: 2921
Latest: provider
Date Registered: March 20, 2024

Members
Total Members: 2922
Latest: Shihan
Date Registered: August 28, 2024

'2921'

'2922'

http://forum.tastyspleen.net/quake/index.php?action=profile;u=####

Nice try.
 

|iR|Focalor

September 26, 2024, 05:49:19 PM

Show 50 latest
Welcome, Guest. Please login or register.
October 10, 2024, 01:32:13 PM

Login with username, password and session length