Garry's Mod Wiki

Garry's Mod Wiki

  render.SetToneMappingScaleLinear( Vector scales )

Description

Sets the tone mapping scale for upcoming rendering operations.

Arguments

1 Vector scales
The tonemapping scales.
  • X - Output scale.
  • Y - Lightmap scale.
  • Z - Reflection map scale.

Example

This disables HDR bloom effect for the rendering inside the block.

local tune_nohdr = Vector( 0.80, 0, 0 ) local oldtune = render.GetToneMappingScaleLinear() render.SetToneMappingScaleLinear( tune_nohdr ) -- Turns off hdr -- render your stuff render.SetToneMappingScaleLinear( oldtune ) -- Resets hdr

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...