has bodygroups mark on icon

This commit is contained in:
Darsu 2024-06-28 01:39:00 +07:00
parent 9ad767bc95
commit f19b717254
3 changed files with 11 additions and 2 deletions

View File

@ -493,6 +493,7 @@ local myMat2 = CreateMaterial( "HandIconGenerator_RTMat", "UnlitGeneric", {
["$vertexalpha"] = 1,
} )
local matshiny = Material("models/shiny")
local hasbgs = Material("eps/hasbgs2.png", "mips smooth") -- or hasbgs3 idk which better
function Menu.Setup()
@ -930,13 +931,21 @@ function Menu.Setup()
render.OverrideBlend( false )
render.SuppressEngineLighting(false)
if CL_REALHANDS:GetNumBodyGroups() > 1 then
cam.Start2D()
surface.SetDrawColor( 255, 255, 255, 255 )
surface.SetMaterial(hasbgs)
surface.DrawTexturedRect(0, 0, 64, 64)
cam.End2D()
end
print( "Generating " .. result.model:StripExtension() )
local data = render.Capture( {
format = "png",
x = 0,
y = 0,
w = 512,
h = 512
w = 64,
h = 64
} )
if !file.Exists("eps_hands", "DATA") then

BIN
materials/eps/hasbgs2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
materials/eps/hasbgs3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB