lmao just enter mat_fullbright 1 in console when you need it
Hello,i need fullbright on lua,thanks for in advance help
lmao just enter mat_fullbright 1 in console when you need it
mat_fullbright isnt a cheat command
Example taken from https://wiki.facepunch.com/gmod/render.SetLightingModeCode:local LightingModeChanged = false hook.Add( "PreRender", "fullbright", function() render.SetLightingMode( 1 ) LightingModeChanged = true end ) local function EndOfLightingMod() if LightingModeChanged then render.SetLightingMode( 0 ) LightingModeChanged = false end end hook.Add( "PostRender", "fullbright", EndOfLightingMod ) hook.Add( "PreDrawHUD", "fullbright", EndOfLightingMod )
hook.Add("RenderScene","gkfffff",function()
render.SetLightingMode(1 and 1 or 0)
end)
hook.Add("PostDrawViewmodel","gkfffff",function()
render.SetLightingMode(0)
end)
hook.Add("PreDrawEffects","gkfffff",function()
render.SetLightingMode(0)
end)