Hello, I'm trying to make a player "blink" white then return to his normal color.
I am setting his material to debugwhite but you can see shadows on him and generally doesn't look nice. Is there a way to disable shadows on him?
I think you should use render.SuppressEngineLighting: enable it, draw model and then disable.
I feel stupid asking this, but where do I put this?
Is there a hook for this?
In a player entity render hook. Maybe you can just make your material full bright? Glowing Textures
You can use ENTITY.RenderOverride and try something like
player.RenderOverride = function(self)
render.SetColorMaterial()
render.SetColorModulation(1, 1, 1)
render.SuppressEngineLighting(true)
self:DrawModel()
render.SuppressEngineLighting(false)
end
(clientside obviously)
TIL
I accepted Zombine's answer but gave a diamond to Lowe, so everyone's happy!
Sorry, you need to Log In to post a reply to this thread.