G.DOFModeHack

From GMod Wiki

Revision as of 20:57, 3 November 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Warning 64 light.png Internal Function: DOFModeHack
DOFModeHack is an internal function. This means you will be able to call it, but you really shouldn't.


Function
Syntax DOFModeHack( Boolean bool )
Where is this used?
Description:
Used by the "Depth of field" Post-processing effect internally.
Returns: nil
Part of Library: Global Functions
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.DOFModeHack]G.DOFModeHack [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis is the DOF_Start function. Filched from \lua\postprocess
Used onNewerClient.png
Code
function DOF_Start()
 
	DOF_Kill()
 
	for i=0, NUM_DOF_NODES do
 
		local effectdata = EffectData()
			effectdata:SetScale( i )
		util.Effect( "dof_node", effectdata )
 
	end
 
	DOFModeHack( true )
 
end
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox