Skip to content

Feature: Upgrade GLSL ES to >=3.0 #2

@xkortex

Description

@xkortex

Hi,

I've been spending a ton of time and having lots of fun on neuralpatterns.io. Awesome project! But I noticed I could not use bitwise operators, not even bitwise AND:

ERROR: 0:56: '&' : bit-wise operator supported in GLSL ES 3.00 and above

I tried the directive #version 300 es but I got ERROR: 0:21: 'version' : #version directive must occur before anything else, except for comments and white space. I'm guessing the Activation code block is getting injected into part of a greater runtime.

I know next to nothing about GLSL so I have no idea if this is feasible with the runtime you are using or not. But it would be super awesome if the default shader used a slightly newer version. Maybe you could even add a field which lets a user pass preprocessor directives to compileShaders.

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