Fr/Refract: Difference between revisions

From Valve Developer Community
< Fr
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
  "Refract"
  "Refract"
  {
  {
"$normalmap" "giger/ex/refract/refract_normal"  //Bump+refract pour DX9
        "$normalmap" "giger/ex/refract/refract_normal"  //Bump+refract pour DX9


  //    "$refracttint" "[1 1 1]"                        //Couleurs des réfractions
  //    "$refracttint" "[1 1 1]"                        //Couleurs des réfractions

Revision as of 04:25, 29 November 2008

Le shader Refract permet de générer des réfractions. Il vous faut appliquer un matériaux Refract à un Brush transformer en Func_brush, sinon le shader ne fonctionnera pas.


VMT

"Refract"
{
       "$normalmap" "giger/ex/refract/refract_normal"   //Bump+refract pour DX9
//     "$refracttint" "[1 1 1]"                         //Couleurs des réfractions
       "$refractamount" "0.2"                           //Valeurs faibles recommander
//     "$dudvmap" "giger/ex/refract/refract_dudv"       //Refractions pour les GPU inférieur à DX9
}