Skip to content

Commit

Permalink
Removed ability to color the texture
Browse files Browse the repository at this point in the history
Removed diffuse modulation support for vehicle glass and van interior textures to avoid them being accidentally painted when giving color to the vehicles. This happens in some retail campaigns like c1m2, and in c5m5. More common in custom campaigns.
  • Loading branch information
skesssler committed Nov 17, 2021
1 parent c2d502e commit 3216072
Show file tree
Hide file tree
Showing 7 changed files with 109 additions and 0 deletions.
22 changes: 22 additions & 0 deletions root/materials/models/props_vehicles/4carz1024_glass.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
VertexLitGeneric
{
$baseTexture "models\props_vehicles/4carz1024_glass"
$bumpmap "effects\flat_normal"
$translucent 1
$allowdiffusemodulation 0
$envmap env_cubemap
$envmaptint "[.8 .8 .8]"


$basemapalphaenvmapmask 1
$envmapfresnel 1
$invertphongmask 1
$halflambert 1
$phong 1
$phongexponent 500
$phongboost 1
$phongfresnelranges "[.3 .6 4]"



}
10 changes: 10 additions & 0 deletions root/materials/models/props_vehicles/car_glass.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
VertexLitGeneric
{
$baseTexture "models\props_vehicles/car_glass"
$allowdiffusemodulation 0
$envmap env_cubemap
$envmapmask "models\props_vehicles\car_glass_ref"
$envmaptint "[.65 .65 .65]"
$envmapcontrast ".5"
$envmapsaturation ".5"
}
21 changes: 21 additions & 0 deletions root/materials/models/props_vehicles/flatnose_truck_glass.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
VertexLitGeneric
{
$baseTexture "models\props_vehicles/flatnose_truck_glass"
$allowdiffusemodulation 0
$translucent 1
$model 1






$envmap env_cubemap
$envmaptint "[ .6 .6 .6 ]"

$envmapfresnel 1
$envmapfresnelMinMaxExp "[0.2 5 2]"



}
16 changes: 16 additions & 0 deletions root/materials/models/props_vehicles/hmmwv_glass.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
VertexLitGeneric
{
$baseTexture "models\props_vehicles/hmmwv_glass"
$allowdiffusemodulation 0
$translucent 1
$envmap env_cubemap
$envmaptint "[.8 .8 .8]"
$basemapalphaenvmapmask 1
$envmapfresnel 1
$invertphongmask 1
$halflambert 1
$phong 1
$phongexponent 500
$phongboost 1
$phongfresnelranges "[.3 .6 4]"
}
17 changes: 17 additions & 0 deletions root/materials/models/props_vehicles/pickup_trucks_glass.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
VertexLitGeneric
{
$baseTexture "models\props_vehicles/pickup_trucks_glass"
$allowdiffusemodulation 0
$bumpmap "effects\flat_normal"
$translucent 1
$envmap env_cubemap
$envmaptint "[.8 .8 .8]"
$basemapalphaenvmapmask 1
$envmapfresnel 1
$invertphongmask 1
$halflambert 1
$phong 1
$phongexponent 500
$phongboost 1
$phongfresnelranges "[.3 .6 4]"
}
18 changes: 18 additions & 0 deletions root/materials/models/props_vehicles/police_cab_city_glass.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
VertexLitGeneric
{
$baseTexture "models\props_vehicles/police_cab_city_glass"
$allowdiffusemodulation 0
$bumpmap "effects\flat_normal"
$translucent 1
$envmap env_cubemap
$envmaptint "[.8 .8 .8]"
$envmapfresnel 1
$envmapFresnelMinMaxExp "[.1 2 3]"
$basemapalphaenvmapmask 1
$invertphongmask 1
$halflambert 1
$phong 1
$phongexponent 500
$phongboost 1
$phongfresnelranges "[.3 .6 4]"
}
5 changes: 5 additions & 0 deletions root/materials/models/props_vehicles/van_interior.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
VertexLitGeneric
{
$baseTexture "models\props_vehicles/van_interior"
$allowdiffusemodulation 0
}

0 comments on commit 3216072

Please sign in to comment.