NeuralPatterns icon indicating copy to clipboard operation
NeuralPatterns copied to clipboard

Feature: Upgrade GLSL ES to >=3.0

Open xkortex opened this issue 4 years ago • 0 comments

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.

xkortex avatar Nov 26 '21 19:11 xkortex