Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Uniform initialisation #30

Open
Open
@hughsk

Description

Appears to not be supported in WebGL (or at least not my machine), though it's listed in the spec, e.g.:

uniform vec3 initialUniform = vec3(1.0, 0.0, 0.0);

This provides default values for uniforms which would be really nice for making more reusable shaders, but quite likely out of scope for gl-shader to shim. Maybe a wrapper package, or even a polyfill? Polyfill runs the risk of putting more burden on the package consumer, though also provides a leaner and more generic way of getting support across multiple frameworks/libraries.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /