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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mphe

Pages: [1]
1
Feature requests / Re: Support for blend color
« on: October 25, 2018, 09:47:16 pm »
Not sure if that question goes to exploiter or me, but in case of the latter: yes, please

2
Feature requests / Re: Support for blend color
« on: October 18, 2018, 03:10:06 am »
Agree with FRex.
Seems like the most straight forward design for this.

3
Feature requests / Re: Support for blend color
« on: October 17, 2018, 03:19:15 pm »
No, as far as I know the blend color is multiplied with the pixel color.
And I know this is possible to do with shaders, but that wasn't the question.

The question / feature request was to add support for blend colors in SFML blend modes, as it is already supported in OpenGL by glBlendColor and the GL_CONSTANT_COLOR related modes.

4
Feature requests / Re: Support for blend color
« on: October 12, 2018, 01:54:53 pm »
Out of curiosity, which blend mode does reproduce that behaviour? List

As FRex said, GL_CONSTANT_COLOR.
There's also a glBlendColor function for setting the corresponding color.

It would be possible with shaders, but that seems a bit overkill for such a simple task.

5
Feature requests / Support for blend color
« on: October 12, 2018, 01:40:46 am »
I was wondering why there's no support for blend colors. There are implementations for all regular blend modes but not for blending with a constant color.

The only way to achieve such a result seems to be by using vertex colors.
But why iterate over the mesh everytime the color changes to update the vertex colors, when there's already a corresponding OpenGL blend mode available?

For certain color effects, like color flashing, you would need to update the vertex colors every frame. Depending on mesh size and the amount of objects that are affected, this seems like quite a bit of unnecessary overhead.

Is there a reason why this isn't supported yet? Are there any plans to support it in the future?

Pages: [1]
anything