Skip to content

modularize shaders #4

@loganzartman

Description

@loganzartman

the shaders are a mess with tons of copy-pasted code.

I already tried glslify, but it is broken for webgl2. there's already a PR open that might fix all my problems, but glslify seems pretty dead. It might be easiest to define shaders in JS with a glsl template literal, and use string interpolation to do some very basic code reuse.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions