Skip to content

feature suggestion / compress inline shaders  #4

@ofZach

Description

@ofZach

not really an issue but I've found that I needed to add some code to compress inline shaders and it works well with the dev.js so I'm sharing it here in case it's helpful for anyone... this might be super niche thing but I always like to try to use glslx where I can.

https://gist.github.com/ofZach/7da40cbe446ef1c6d6009488aee76d53

let src = await bundle();
src = compressShaders(src);
const min = await compress(src);

this assumes inline shaders in a specific format (like let fs = ...) so again it may be kind of specific but I found it helpful.

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