Initial commit

This commit is contained in:
2026-03-15 14:54:49 +03:00
commit 64f8029c06
4027 changed files with 254888 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
matproxy.Add( {
name = "SkyPaint",
init = function( self, mat, values )
end,
bind = function( self, mat, ent )
local skyPaint = g_SkyPaint
if ( not IsValid( skyPaint ) ) then return end
mat:SetVector( "$TOPCOLOR", skyPaint:GetDTVector( 0 ) )
mat:SetVector( "$BOTTOMCOLOR", skyPaint:GetDTVector( 1 ) )
mat:SetVector( "$DUSKCOLOR", skyPaint:GetDTVector( 4 ) )
mat:SetFloat( "$DUSKSCALE", skyPaint:GetDTFloat( 2 ) )
mat:SetFloat( "$DUSKINTENSITY", skyPaint:GetDTFloat( 3 ) )
mat:SetFloat( "$FADEBIAS", skyPaint:GetDTFloat( 0 ) )
mat:SetFloat( "$HDRSCALE", skyPaint:GetDTFloat( 1 ) )
mat:SetVector( "$SUNNORMAL", skyPaint:GetDTVector( 2 ) )
mat:SetVector( "$SUNCOLOR", skyPaint:GetDTVector( 3 ) )
mat:SetFloat( "$SUNSIZE", skyPaint:GetDTFloat( 4 ) )
if ( not skyPaint:GetDTBool( 0 ) ) then
return mat:SetInt( "$STARLAYERS", 0 )
end
mat:SetInt( "$STARLAYERS", skyPaint:GetDTInt( 0 ) )
local star = skyPaint:GetDTAngle( 0 )
mat:SetFloat( "$STARSCALE", star.p )
mat:SetFloat( "$STARFADE", star.y )
mat:SetFloat( "$STARPOS", star.r * RealTime() )
mat:SetTexture( "$STARTEXTURE", skyPaint:GetDTString( 0 ) )
end
} )