Types of values for shader parameters:fr
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
This article has no links to other VDC articles. Please help improve this article by adding links that are relevant to the context within the existing text.
January 2024
January 2024
This article is an orphan, meaning that few or no articles link to it.
You can help by adding links to this article from other relevant articles.
January 2024
You can help by adding links to this article from other relevant articles.
January 2024
Les valeurs des paramètres des shaders sont de plusieurs types, exemple :
"$basetexture" "coast\shingle_01" "$refracttint" "[.68 .76 .76]" "$envmapcontrast" "0.8" "$surfaceprop" "MetalVent" "$reflectamount" "2.5" "$abovewater" "0" "$fogend" "330"
Texture
Chemin d'une texture, sans l'extension du format.
- Ex : "$basetexture" "coast\shingle_01"
Choix
Selections d'une valeurs parmis une listes définie.
- Ex : "$surfaceprop" "gravel"
Boolean
Seulement deux valeurs.
- 0=desactiver
- 1=activer
- Ex : "$abovewater" "0"
Float
Un nombre entier, avec une décimal possible.
- Ex : "$reflectamount" "2.5"
Integer
Un nombre entier, sans décimal.
- Ex : "$fogend" "330"
Normal
Nombre entre 0 et 1, qui represente le pourcentage.
- Ex : "$envmapcontrast" "0.8"
RGB matrix
Valeurs normal des 3 composante.
- Ex pour avoir du rouge pure : "$refracttint" "[1 0 0]"