Skip to main content
Participant
September 10, 2022
Answered

Function that says: if ''white'' is above 0.5, then it is 0.5

  • September 10, 2022
  • 1 reply
  • 118 views

Hi guys,

 

I'm trying to create a function that says: if ''white'' is above 0.5, then it is 0.5. But I don't know how to tell designer what is ''white''. I guess that would be in a level after my FX map. I'm trying to fix the color stacking when my leaves goes above each other:

 

This topic has been closed for replies.
Correct answer davescm

If I read your question correctly, you want to clamp greyscale values at 0.5 so anything above that becomes 0.5.

 

You could do that with blend nodes (first blend node set to add and the second to subtract) :

 

 

or with the pixel processor node :

 

Dave

1 reply

davescm
Community Expert
davescmCommunity ExpertCorrect answer
Community Expert
September 10, 2022

If I read your question correctly, you want to clamp greyscale values at 0.5 so anything above that becomes 0.5.

 

You could do that with blend nodes (first blend node set to add and the second to subtract) :

 

 

or with the pixel processor node :

 

Dave

david5E86Author
Participant
September 10, 2022

Awesome, thank you !