DrawBloom

From Garry's Mod
Jump to: navigation, search
 DrawBloom( )

Contents

Description

Draws the bloom shader, which creates a glowing effect from bright objects.

Arguments

number Darken

Determines how much to darken the effect. A lower number will make the glow come from lower light levels. A value of 1 will make the bloom effect unnoticeable. Negative values will make even pitch black areas glow.

Arguments

number Multiply

Will affect how bright the glowing spots are. A value of 0 will make the bloom effect unnoticeable.

Arguments

number SizeX

The size of the bloom effect along the horizontal axis.

Arguments

number SizeY

The size of the bloom effect along the vertical axis.

Arguments

number Passes

Determines how much to exaggerate the effect.

Arguments

number ColorMultiply

Will multiply the colors of the glowing spots, making them more vivid.

Arguments

number Red

How much red to multiply with the glowing color. Should be between 0 and 1

Arguments

number Green

How much green to multiply with the glowing color. Should be between 0 and 1

Arguments

number Blue

How much blue to multiply with the glowing color. Should be between 0 and 1

Examples

Example

Draws bloom effect with default settings.

function GM:RenderScreenspaceEffects()
	DrawBloom( 0.65, 2, 9, 9, 1, 1, 1, 1, 1 )
end


Personal tools
Navigation