Skip to content

Proposal: user-defined shaders #3652

@ddevault

Description

@ddevault

Not sure if we actually want to do this, but someone on HN proposed it and it might not be that rough after I gave it some thought.

shader my-shader load path/to/vertex.glsl path/to/fragment.glsl
shader my-shader set my_color vec3 0.0 0.0 1.0 1.0
for_window [.*] shader my-shader

We'd then use these shaders when rendering those windows, rather than the wlr_renderer shaders. Seeking feedback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions