Toggling effects in enbeffect file

Post Reply
  • Author
  • Message
Offline
Posts: 66
Joined: 08 May 2014, 00:00

Toggling effects in enbeffect file

Hey. It's been a long time and I was never very proficient with shaders to begin with. I would like to know how to toggle on and off sections of my primary shader in the enbeffect file. For example if I wanted to tweak my tonemap in black and white or disable the tonemap and just tweak the adaptation on its own. I know it's possible. I've seen it before.

I remember it looking something like this...

Code: Select all

bool 	EnableBloom 
<	
	string UIName="Enable Bloom";				
> = {true};

Code: Select all

	
if(EnableBloom == true)
{
		color.xyz	+=	bloom * BloomAmount;
}
But when I try to toggle nothing happens and there's no errors either.

Offline
Posts: 66
Joined: 08 May 2014, 00:00

Re: Toggling effects in enbeffect file

I figured it out. Got to use integer instead of boolean.
Post Reply