Loading…
skypichat
Translation approved |
|
skypichat
Translation changed |
|
skypichat
Translation added |
|
Loading…
skypichat
Translation approved |
|
skypichat
Translation changed |
|
skypichat
Translation added |
|
The file [B]presets.json[/B] is used to define custom shaders.
A custom path to the shader files (GLSL) can be declared in the add-on settings.
Contents of [B]presets.json[/B] should be:
[I] 1.[/I] Name of preset. Either hardcoded string or defined in [I]resources/language/.../strings.po[/I]
[I] 2.[/I] GLSL shader to use. If no custom path was declared, the default [B]resources/[/B] will be used. Set custom path to './' to use shaders from the same path as your [B]presets.json[/B] file.
[I] 3.[/I] Channel value 0. Defines the texture to use (e.g. PNG file). Can also be set to "audio" to pass related stream data within texture. The PNG and GLSL files should be located in the same directory.
[I] 4.[/I] Channel value 1 definition.
[I] 5.[/I] Channel value 2 definition.
[I] 6.[/I] Channel value 3 definition.
[I] 7.[/I] [I][Optional][/I] append string [B]"gl_only"[/B] to make this preset only available to OpenGL.
[B]Example:[/B]
[COLOR white][COLOR green]{[/COLOR] [COLOR blue]"presets"[/COLOR]:[
[COLOR gray]/* Default way used by the addon itself */[/COLOR]
[ [COLOR red]"The Disco Tunnel by poljere"[/COLOR], [COLOR red]"discotunnel.frag.glsl"[/COLOR], [COLOR red]"tex02.png"[/COLOR], [COLOR red]"tex15.png"[/COLOR], [COLOR red]"audio"[/COLOR], [COLOR red]""[/COLOR] ],
[COLOR gray]/* Description defined in strings.po */[/COLOR]
[ 30100, [COLOR red]"audioeclipse.frag.glsl"[/COLOR], [COLOR red]"audio"[/COLOR], [COLOR red]""[/COLOR], [COLOR red]""[/COLOR], [COLOR red]""[/COLOR] ],
[COLOR gray]/* Define custom file paths */[/COLOR]
[ [COLOR red]"My own one"[/COLOR], [COLOR red]"/path/to/glsl/my.frag.glsl"[/COLOR], [COLOR red]"audio"[/COLOR], [COLOR red]"/path/to/pngs/my_image.png"[/COLOR], [COLOR red]""[/COLOR], [COLOR red]""[/COLOR] ],
[COLOR gray]/* Preset only available to OpenGL (see 7) */[/COLOR]
[ [COLOR red]"Polar Beats by sauj123"[/COLOR], [COLOR red]"polarbeats.frag.glsl"[/COLOR], [COLOR red]"audio"[/COLOR], [COLOR red]""[/COLOR], [COLOR red]""[/COLOR], [COLOR red]""[/COLOR], [COLOR red]"gl_only"[/COLOR] ],
[COLOR gray]/* GLSL and PNG files are in the same folder as presets.json */[/COLOR]
[ [COLOR red]"Another one"[/COLOR], [COLOR red]"./another.frag.glsl"[/COLOR], [COLOR red]"./my_01.png"[/COLOR], [COLOR red]"./my_02.png"[/COLOR], [COLOR red]"audio"[/COLOR], [COLOR red]""[/COLOR] ],
[COLOR gray]/* Select texture image by file name, use default "resources/" dir */[/COLOR]
[ [COLOR red]"Fractal Land by Kali"[/COLOR], [COLOR red]"fractalland.frag.glsl"[/COLOR], [COLOR red]"tex02.png"[/COLOR], [COLOR red]"tex15.png"[/COLOR], [COLOR red]"audio"[/COLOR], [COLOR red]""[/COLOR] ]
][COLOR green]}[/COLOR][/COLOR]
Le fichier [B]presets.json[/B] est utilisé pour définir des shaders personnalisés.
Un chemin personnalisé vers les fichiers de shader (GLSL) peut être déclaré dans les paramètres du module complémentaire.
Le contenu de [B]presets.json[/B] doit être:
[I] 1.[/I] Nom du préréglage. Chaîne codée en dur ou définie dans [I]resources/language/.../strings.po[/I]
[I] 2.[/I] Shader GLSL à utiliser. Si aucun chemin personnalisé n'a été déclaré, les [B]ressources/[/B] par défaut seront utilisés. Définissez le chemin personnalisé sur './' pour utiliser les shaders du même chemin que votre fichier [B]presets.json[/B].
[I] 3.[/I] Valeur du canal 0. Définit la texture à utiliser (par exemple, fichier PNG). Peut également être défini sur "audio" pour transmettre les données de flux associées dans la texture. Les fichiers PNG et GLSL doivent se trouver dans le même répertoire.
[I] 4.[/I] Définition de la valeur du canal 1.
[I] 5.[/I] Définition de la valeur du canal 2.
[I] 6.[/I] Définition de la valeur du canal 3.
[I] 7.[/I] [I][Facultatif][/I] ajoutez la chaîne [B]"gl_only"[/B] pour rendre ce préréglage disponible uniquement pour OpenGL.
[B]Exemple:[/B]
[COULEUR blanc][COULEUR vert]{[/COLOR] [COULEUR bleu]"presets"[/COLOR] :[
[COLOR gray]/* Manière par défaut utilisée par l'addon lui-même */[/COLOR]
[ [COLOR red]"The Disco Tunnel by poljere"[/COLOR], [COLOR red]"discotunnel.frag.glsl"[/COLOR], [COLOR red]"tex02.png"[/COLOR], [COLOR red ]"tex15.png"[/COLOR], [COULEUR rouge]"audio"[/COLOR], [COULEUR rouge]""[/COLOR] ],
[COULEUR gris]/* Description définie dans strings.po */[/COLOR]
[ 30100, [COULEUR rouge]"audioeclipse.frag.glsl"[/COLOR], [COULEUR rouge]"audio"[/COLOR], [COULEUR rouge]""[/COLOR], [COULEUR rouge]""[/ COULEUR], [COULEUR rouge]""[/COULEUR] ],
[COULEUR gris]/* Définir les chemins de fichiers personnalisés */[/COLOR]
[ [COLOR red]"Mon propre"[/COLOR], [COLOR red]"/path/to/glsl/my.frag.glsl"[/COLOR], [COLOR red]"audio"[/COLOR], [COULEUR rouge]"/chemin/vers/pngs/mon_image.png"[/COLOR], [COULEUR rouge]""[/COLOR], [COULEUR rouge]""[/COLOR] ],
[COLOR gray]/* Préréglage uniquement disponible pour OpenGL (voir 7) */[/COLOR]
[ [COULEUR rouge]"Polar Beats by sauj123"[/COLOR], [COULEUR rouge]"polarbeats.frag.glsl"[/COLOR], [COULEUR rouge]"audio"[/COLOR], [COULEUR rouge]"" [/COLOR], [COULEUR rouge]""[/COLOR], [COULEUR rouge]""[/COLOR], [COULEUR rouge]"gl_only"[/COLOR] ],
[COLOR gray]/* Les fichiers GLSL et PNG sont dans le même dossier que presets.json */[/COLOR]
[ [COLOR red]"Un autre"[/COLOR], [COLOR red]"./another.frag.glsl"[/COLOR], [COLOR red]"./my_01.png"[/COLOR], [COLOR rouge]"./my_02.png"[/COLOR], [COULEUR rouge]"audio"[/COLOR], [COULEUR rouge]""[/COLOR] ],
[COULEUR gris]/* Sélectionnez l'image de texture par nom de fichier, utilisez le répertoire "ressources/" par défaut */[/COLOR]
[ [COULEUR rouge]"Fractal Land par Kali"[/COLOR], [COULEUR rouge]"fractalland.frag.glsl"[/COLOR], [COULEUR rouge]"tex02.png"[/COLOR], [COULEUR rouge] "tex15.png"[/COLOR], [COULEUR rouge]"audio"[/COLOR], [COULEUR rouge]""[/COLOR] ]
][COULEUR vert]}[/COLOR][/COLOR]