Skip to content

Shader_File

Aiekick edited this page Mar 19, 2019 · 1 revision

A shader file integrate many sections in one file :

the possibles sections are listed in the tree

each section can have some params after.

the general syntax si :

@SECTION_NAME SECTION(name) KEY(params) KEY2(params) etc

the key SECTION() is a special section. you can have many section with a name. like that is the left panel, you have a combobox when you can choose what name you want use

all theses key can be commented by // or with /* */

you can have many section in the order you want.

@FRAGMENT

@UNIFORMS

@FRAGMENT

is valid :)

you have some samples available on the repo : here

Clone this wiki locally