Live data from Hacker News

Write shaders for the (sim) Vegas sphere

whenistheweekend.com

1–10 of 91 posts

Re: Write shaders for the (sim) Vegas sphere

#9
post #3

That's super cool! What shader language is this using?

GLSL - OpenGL Shader Language Definitely check out ShaderToy to see many other examples: https://www.shadertoy.com/

Ah, thanks! I was trying to copy-paste some examples and they didn't quite work -- it looks like ShaderToy exposes a mainImage(out vec4, in vec2) function with a different signature than the simulation-Sphere site wants. For example there's no main() method in here [0] and I wasn't sure how to translate that to the sphere's expected inputs.

[0] https://www.shadertoy.com/view/Ms2SDc

Post reply on HN