Live data from Hacker News

Write shaders for the (sim) Vegas sphere

whenistheweekend.com

11–20 of 91 posts

Re: Write shaders for the (sim) Vegas sphere

#16
Here's a static penrose tiling.

https://gist.github.com/vjeranc/265db912d4004c7c0b0f16ae5fda...

Interestingly, sphere is not infinite so having this aperiodic tiling is pointless (still looks nice).

Although, I never found out if there's a similar set of tiles (or a monotile) that can tile an infinite cone.

Re: Write shaders for the (sim) Vegas sphere

#17

Earlier quoted context omitted.

Did you actually try it? Bc it doesn't work for me

My bad, something went wrong with the formatting, I uploaded the code to a paste: https://pastes.io/dmqjuyktfv

Indent the code two spaces for HN: https://news.ycombinator.com/formatdoc

Re: Write shaders for the (sim) Vegas sphere

#18
post #9

Earlier quoted context omitted.

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

Yeah, you will need to adapt the code a bit: https://gist.github.com/b0o/ac939eb1608f949765ac842fe28f53b9
Post reply on HN