mirror of
https://github.com/HaodongMo/ARC-9.git
synced 2025-03-04 03:02:58 -05:00
reverting rt lense changes, instant flicker not good
aalso higher envmap values
This commit is contained in:
parent
129c289286
commit
bf8d111ceb
@ -89,47 +89,24 @@ matproxy.Add({
|
||||
end
|
||||
})
|
||||
|
||||
-- matproxy.Add({
|
||||
-- name = "arc9_scope_alpha",
|
||||
-- init = function(self, mat, values)
|
||||
-- self.ResultTo = values.resultvar
|
||||
-- end,
|
||||
-- bind = function(self, mat, ent)
|
||||
-- local ply = LocalPlayer()
|
||||
|
||||
-- if IsValid(ply) then
|
||||
-- local weapon = ply:GetActiveWeapon()
|
||||
|
||||
-- if IsValid(weapon) and weapon.ARC9 then
|
||||
-- local amt = 1 - weapon:GetSightAmount() / 1
|
||||
-- amt = amt * 0.2
|
||||
-- mat:SetVector(self.ResultTo, Vector(amt*1.1, amt*0.9, amt*1.3))
|
||||
-- end
|
||||
-- end
|
||||
-- end
|
||||
-- })
|
||||
|
||||
local function getWeaponSightAmount()
|
||||
if (IsValid(LocalPlayer():GetActiveWeapon()) && LocalPlayer():GetActiveWeapon().GetSightAmount != nil) then
|
||||
return LocalPlayer():GetActiveWeapon():GetSightAmount()
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
matproxy.Add( {
|
||||
matproxy.Add({
|
||||
name = "arc9_scope_alpha",
|
||||
|
||||
init = function(self, mat, values)
|
||||
self.ResultTo = values.resultvar
|
||||
end,
|
||||
|
||||
bind = function(self, mat, ent)
|
||||
if (!IsValid(ent)) then return end
|
||||
local ply = LocalPlayer()
|
||||
|
||||
--print(getWeaponSightAmount())
|
||||
if IsValid(ply) then
|
||||
local weapon = ply:GetActiveWeapon()
|
||||
|
||||
mat:SetInt("$cloakpassenabled", 1)
|
||||
mat:SetFloat("$cloakfactor", math.ceil(getWeaponSightAmount()))
|
||||
end
|
||||
if IsValid(weapon) and weapon.ARC9 then
|
||||
local amt = 1 - weapon:GetSightAmount() / 1
|
||||
amt = amt * 0.2
|
||||
mat:SetVector(self.ResultTo, Vector(amt*2.2, amt*1.8, amt*2.6))
|
||||
end
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
local lastPos = Vector()
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,34 +1,22 @@
|
||||
"VertexlitGeneric"
|
||||
{
|
||||
"$basetexture" "effects/arc9/lens_d"
|
||||
"$bumpmap" "effects/arc9/lens_n"
|
||||
"$phongexponenttexture" "effects/arc9/lens_s"
|
||||
//"$color2" "[0 0 0]"
|
||||
|
||||
"$translucent" "1"
|
||||
"$phong" "1"
|
||||
"$phongboost" "1"
|
||||
"$phongexponent" "10"
|
||||
"$phongfresnelranges" "[1 0.5 0]"
|
||||
|
||||
"$basetexture" "effects/arc9/glass"
|
||||
"$bumpmap" "effects/arc9/glass_nm"
|
||||
"$translucent" 1
|
||||
"$phong" 1
|
||||
"$phongboost" "2"
|
||||
"$phongexponent" 0
|
||||
"$envmap" "env_cubemap"
|
||||
"$envmaptint" "[.5 .5 .5]"
|
||||
"$normalmapalphaenvmapmask" "1"
|
||||
"$envmapfresnel" "5"
|
||||
|
||||
"$envmapfresnel" "-200.0"
|
||||
"$phongfresnelranges" "[0.01 0.35 3.0]"
|
||||
//"$alpha" "0"
|
||||
//"$envmaptint" "[2 2 2]"
|
||||
|
||||
"$rimlight" "1"
|
||||
"$rimmask" "1"
|
||||
"$rimlightboost" "1"
|
||||
"$rimlightexponent" "100"
|
||||
// "$envmaptint" "[2 2 2]"
|
||||
|
||||
"Proxies"
|
||||
{
|
||||
"arc9_scope_alpha"
|
||||
{
|
||||
//"resultVar" "$cloakfactor"
|
||||
}
|
||||
"arc9_scope_alpha"
|
||||
{
|
||||
"resultVar" "$envmaptint"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,22 +0,0 @@
|
||||
"VertexlitGeneric"
|
||||
{
|
||||
"$basetexture" "effects/arc9/glass"
|
||||
"$bumpmap" "effects/arc9/glass_nm"
|
||||
"$translucent" 1
|
||||
"$phong" 1
|
||||
"$phongboost" "2"
|
||||
"$phongexponent" 0
|
||||
"$envmap" "env_cubemap"
|
||||
"$envmapfresnel" "-200.0"
|
||||
"$phongfresnelranges" "[0.01 0.35 3.0]"
|
||||
//"$alpha" "0"
|
||||
// "$envmaptint" "[2 2 2]"
|
||||
|
||||
"Proxies"
|
||||
{
|
||||
"arc9_scope_alpha"
|
||||
{
|
||||
"resultVar" "$envmaptint"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user