Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
136 changes: 136 additions & 0 deletions materials/models/humans/mri/mri_male_v1/mri_male_v1.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
"UnlitTwoTexture"
{
"$surfaceprop" "metal"
//"$basetexture" "models\titans\titan_ar_marker\titan_ar_marker_col"
"$basetexture" "effects\white"
$texture2 effects\dev_scanline_small

$alpha 1

$nodecal 1
$model 1
$ignorez 1
$translucent 1
$nofog 1
$no_fullbright 1
$allowoverbright 1
$translucent 1
$screenblend 1

$screenspacecoordssquare2 1

$layercolor1 "[0.1 0.0 0.0]"
$layeralpha1 "0.1"
$layercolor2 "[0.4 0.05 0.0]"
$layeralpha2 "1.0"
$addlayers 1


$fresnel 0

$fresnelSharpness1 1.0
$fresnelOuterStrength1 0.0
$fresnelInnerStrength1 1.0

$fresnelSharpness2 0.0
$fresnelOuterStrength2 1.0
$fresnelInnerStrength2 0.0

$t2scroll "[0 1]"
$t2scale "[3 3]"

//$matchColor "[0.0 0.25 0.4]"
//$mismatchColor "[0.4 0.05 0.0]"
$matchColor "[0.0 1.5 2.4]"
$mismatchColor "[20. 0.60 0.0]"

/////////////////////////////////////////////////////////

"$valuezero" "0"

"$colorzero" "[0 0 0]"
"$colorblindMatchColor" "[1 1 1]"
"$colorblindMismatchColor" "[1 1 1]"

$newMatchColor "[0.0 1.5 2.4]"
$newMismatchColor "[20. 0.60 0.0]"

Proxies
{
EntitySonarColor
{
sameTeamColorVar $matchColor
otherTeamColorVar $mismatchColor

resultvar $layercolor2
}

EntitySonarColor
{
sameTeamColorVar $matchColor
otherTeamColorVar $mismatchColor

resultvar $layercolor1
}

EntityScript
{
scriptFuncName "VMTCallback_ColorBlindBlue"
resultVar $colorblindMatchColor
}

// if ( srcVar1 > srcVar2 )
// resultVar = greaterVar
// else
// resultVar = LessEqualVar
LessOrEqual
{
lessEqualVar $newMatchColor
greaterVar $colorblindMatchColor
srcVar1 $colorblindMatchColor
srcVar2 $valuezero
resultVar $matchColor
}

EntityScript
{
scriptFuncName "VMTCallback_ColorBlindRed"
resultVar $colorblindMismatchColor
}

Multiply
{
srcVar1 $colorblindMismatchColor
srcVar2 10
resultVar $colorblindMismatchColor
}
LessOrEqual
{
lessEqualVar $newMismatchColor
greaterVar $colorblindMismatchColor
srcVar1 $colorblindMismatchColor
srcVar2 $valuezero
resultVar $mismatchColor
}

EntityScript
{
scriptFuncName "VMTCallback_MPEntitySonarFrac"
resultVar $alpha
}

TextureScroll
{
"textureScrollVar" "$t2scroll"
"textureScrollRate" 0.8
"textureScrollAngle" -90
}

TextureTransform
{
translateVar $t2scroll
scaleVar $t2scale
resultVar $texture2transform
}
}
}
95 changes: 95 additions & 0 deletions materials/models/titans/titan_ar_marker/titan_ar_marker.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
"UnlitTwoTexture"
{
"$surfaceprop" "metal"
//"$basetexture" "models\titans\titan_ar_marker\titan_ar_marker_col"
"$basetexture" "effects\white"
"$texture2" "effects\dev_scanline_sparse"

$nofog 1
$alpha 1

$translucent 1
$screenblend 1

$screenspacecoordssquare2 1

$layercolor1 "[1 0.1 0.1]"
$layeralpha1 "1"
$layercolor2 "[1 0.1 0.1]"
$layeralpha2 "1"
$addlayers 1


$fresnel 1

$fresnelSharpness1 1.0
$fresnelOuterStrength1 0.0
$fresnelInnerStrength1 1.0

$fresnelSharpness2 0.0
$fresnelOuterStrength2 1.0
$fresnelInnerStrength2 0.0

/////////////////////////////////////////////////////////

"$valuezero" "0"

"$colorzero" "[0 0 0]"
"$colorblind_color" "[1 1 1]"

$newLayercolor "[1 0.1 0.1]"

Proxies
{
EntityScript
{
scriptFuncName "VMTCallback_ColorBlindRed"
resultVar $colorblind_color
}

// if ( srcVar1 > srcVar2 )
// resultVar = greaterVar
// else
// resultVar = LessEqualVar
LessOrEqual
{
lessEqualVar $newLayercolor
greaterVar $colorblind_color
srcVar1 $colorblind_color
srcVar2 $valuezero
resultVar $layercolor1
}

LessOrEqual
{
lessEqualVar $newLayercolor
greaterVar $colorblind_color
srcVar1 $colorblind_color
srcVar2 $valuezero
resultVar $layercolor2
}

EntityScript
{
scriptFuncName "VMTCallback_MPEntityARAlpha"
resultVar $alpha
}


// "TextureScroll"
// {
// "texturescrollvar" "$basetexturetransform"
// "texturescrollrate" 0.25
// "texturescrollangle" 0
// "texturescale" 0.5
// }


"TextureScroll"
{
"texturescrollvar" "$texture2transform"
"texturescrollrate" 2
"texturescrollangle" -90
}
}
}
4 changes: 4 additions & 0 deletions materials/models/weapons/smr/smr_red.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"Patch"
{
"Include" "materials/models/weapons/smr/smr.vmt"
}
4 changes: 4 additions & 0 deletions materials/models/weapons/xotbr16/xotbr16_red.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"Patch"
{
"Include" "materials/models/weapons/xotbr16/xotbr16.vmt"
}
4 changes: 4 additions & 0 deletions materials/models/weapons/xotbr16/xotbr16_white.vmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"Patch"
{
"Include" "materials/models/weapons/xotbr16/xotbr16.vmt"
}
Loading