Fr/Examples of Materials
< Fr
Jump to navigation
Jump to search

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

Cet article est orphelin, ce qui signifie que des articles peu ou pas de lien vers elle.
Vous pouvez contribuer en
ajoutant des liens vers cet article à partir d'autres articles pertinents.
January 2024
Vous pouvez contribuer en

January 2024
Voici diffents exemples de fichier VMT.
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 }