Skip to content

Does ffgl support WebGL 2 features? #74

Description

@wyhinton

I'm building some shaders using WebGL 2. Does ffgl only support WebGL 1?

i.e will shader code like this work?

#version 300 es
precision highp float;
 
in vec4 v_positionWithOffset;
 
out vec4 outColor;
 
void main() {
  // convert from clipsapce (-1 <-> +1) to color space (0 -> 1).
  vec4 color = v_positionWithOffset * 0.5 + 0.5;
  outColor = color;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions