PhotonBox icon indicating copy to clipboard operation
PhotonBox copied to clipboard

Shader System rework

Open Haeri opened this issue 5 years ago • 0 comments

The current shader system needs a rework. It should not be necessary to create a class for every shader type. A shader instance should parse all the necessary information from a unified shader file (with a .pbs extension) containing vertex and fragment source code. Additional defines should specify how the shader is configured.

shader.pbs

# type: surface
# vertex
/* glsl code */

# fragment
/* glsl code */

Haeri avatar Dec 30 '19 14:12 Haeri