Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Don Romano 🍹 (thj@mastodon.cloud)'s status on Friday, 11-Oct-2019 15:39:51 EDT Don Romano 🍹 Don Romano 🍹

    Here's some exploratory code I did for work, to generate GLSL shaders dynamically:

    https://observablehq.com/@thor/glsl-code-generator

    After I learned that GLSL doesn't allow you to chain shaders of the same type together, and copy-pasting shared code from shader to shader seemed like a horrible solution, I decided to make a code generator.

    I ended up writing a code generator based on token trees structured as a kind of prefix code.

    Take a look. It's a carefully documented live demo.

    In conversation Friday, 11-Oct-2019 15:39:51 EDT from mastodon.cloud permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.