-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Really want small helpers for things like inputs, functions, textures, etc.
This is also to help cross-platform specific things to be automatically handled.
I'm expecting it to keep like 99% of normal GLSL, just with some helpers to allow it all to be encompassed in a single file.
Structure
Variables
Variables have 3 total prefix-keywords: vertex, fragment, and uniform.
Functions
Two entry functions: void vertex() and void fragment() which get converted/split into the relevant shaders during compilation.
Desktop Examples
uniform Texture _name -> layout(bindless_sampler) uniform sampler2D _name (bindless my beloved)
vertex vec3 v_position -> (vertex) in vec3 v_position;
fragment vec3 f_position -> (vertex) out vec3 f_position; + (fragment) in vec3 f_position;
Web Examples
uniform Texture _name -> uniform sampler2D _name (requires use of texture slots)
vertex vec3 v_position -> (vertex) in mediump vec3 v_position;