-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[ Question ] Glsl and OpenGL #120
Comments
Mostly
Reference https://mpv.io/manual/stable/#options-glsl-shader for MPV specific metadata |
Replacing those metadata is enough, the bulk of the shader code is the same. Also, I believe mpv outputs the pure GLSL shader in the logs when you load the shader, and there exists a shader cache https://mpv.io/manual/master/#options-gpu-shader-cache-dir that might help you quickly convert from mpv Edit: I just checked, the cache is stored as a binary format, so it is not really useful directly. |
Would you mind @bloc97 providing us with a version for general use, eg. a normal shader usable (almost) anywhere ? |
@Snouf-ID Have you managed to rewrite the shaders from the hook format to the general shader? |
您的邮件已收到!谢谢!
|
I had made good progress but it takes a lot of time because I do not have a basic understanding of the syntax used here and defines them from the video player, how shader are call... |
Hello,
I am looking to use this shader glsl in my opengl / c ++ program.
But I see it is strongly linked to mvp.
Anyone have any information or help for using these shader outside of MVP?
If we replace the "hook" function of the shaders with a "main" and arrange the input data should it work? Or there is something else that MVP does and it would be good to know?
thank you in advance :)
The text was updated successfully, but these errors were encountered: