Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Soft Light blendmode  (Read 1376 times)

0 Members and 1 Guest are viewing this topic.

Antonio9227

  • Newbie
  • *
  • Posts: 25
    • View Profile
Soft Light blendmode
« on: March 18, 2015, 11:00:25 am »
Hello guys, now this might sound like a noobie problem, but I would like to ask how can I implement the Soft light blendmode (just like in photoshop) to a SFML application. I'm thinking of using a fragment shader but unfortunately my GLSL skills are not that good.

I found this formula on wikipedia, it's not quite the way photoshop does it but it should work just fine.


Thanks in advance ^_^.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Soft Light blendmode
« Reply #1 on: March 18, 2015, 11:03:58 am »
Quote
I'm thinking of using a fragment shader
For such a complicated formula, this is the only way. Native blend modes have a fixed formula that can only be tweaked in a limited way (look at the doc for details).
Laurent Gomila - SFML developer

Antonio9227

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Soft Light blendmode
« Reply #2 on: March 18, 2015, 11:08:42 am »
That was really fast, wow. Thanks ! I will look over the native blend modes and try to understand the whole concept better.