Examples of Materials: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
Voici diffents exemples de fichier VMT.
Contents
Matériaux de base
"LightmappedGeneric" { "$basetexture" "...." //chemin du VTF sans l'extension "$surfaceprop" "gravel" }
Matériaux avec bump
"LightmappedGeneric" { "$basetexture" "...." //chemin du VTF "$bumpmap" "gravel" //chemin du VTF du bump }
Matériaux transparent
Ils suffit d'ajouter un canal alpha à votre texture.
LightmappedGeneric { "$basetexture" "wood\inffence01" "$surfaceprop" "wood" "$translucent" "1" }
Matériaux avec reflet
"LightmappedGeneric" { "$basetexture" "...." "$envmap" "env_cubemap" //prend le cubemap le plus proche en reference pour simuler les reflets "$envmaptint" "[ 1 1 1 ]" //controle de lintensite du reflet "$envmapcontrast" 1 //evite à la texture d'être trop claire // tapez buildcubemap dans le moteur et relancez la map pour generer vos cubemap propre à votre map }
Matériaux avec reflet, bump et masque de relfexions
Voici un matériaux avancé, qui necessite deux VTF : Votre texture de base et votre bump qui contient une couche alpha qui servira au masque.
"LightmappedGeneric" { "$basetexture" "...." "$bumpmap" "...." "$envmap" "env_cubemap" "$envmaptint" "[ 1 1 1 ]" "$envmapcontrast" 1 "$normalmapalphaenvmapmask" 1 }