Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement mix color shader. #63

Open
andy840119 opened this issue Oct 6, 2021 · 5 comments
Open

Implement mix color shader. #63

andy840119 opened this issue Oct 6, 2021 · 5 comments
Labels
shader New or fix shader effect.

Comments

@andy840119
Copy link
Member

See mixed texture deleted before, not really sure will be implemented by shader 🤔
https://github.com/karaoke-dev/osu-framework-font/blob/2021.0708.0/osu.Framework.Font/Graphics/Sprites/ILyricTexture.cs

@andy840119 andy840119 added the shader New or fix shader effect. label Oct 6, 2021
@andy840119
Copy link
Member Author

Update:
Should be able to accept array in GetUniform<T> (See SetupUniforms in Shader.cs)

@andy840119
Copy link
Member Author

Or calculate the sample shader by CPU.
But it might cause lots of delay if running in graphic thread.

@andy840119
Copy link
Member Author

https://git.buttonbashed.co.nz/shadoh/Explore/src/master/Exploration/GLObjects/ShaderProgram.cs
Not really sure that will unitorm array in shader will become to each params.

e.g: point_1, point_2 ...

@andy840119
Copy link
Member Author

image
tested.
seems osu-framework only able to assign first variable in array...

@andy840119
Copy link
Member Author

https://gamedev.stackexchange.com/questions/79376/slow-uniform-array-in-shader-causing-fps-drop
Also, found an issue that will cause performance while reading data from array.
So the tricky way might be place passing data into sample2D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
shader New or fix shader effect.
Projects
None yet
Development

No branches or pull requests

1 participant