-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Undefined variable "gl_Position1" #4
Comments
Incidentally, shouldn't vs_a0 be an attribute since it's coming from the vertex buffer with the vs_vN uniforms? I'm not totally clear on how this works. |
Probably have to break before this assignment when index > 0: https://github.com/FNA-XNA/MojoShader/blob/fna-staging/mojoshader.c#L2626 |
maybe strcpy gl_position to var, then strcat the index and return that? |
Try the |
Here's the git diff of what I mean, should apply cleanly to the MojoShader submodule in your local copy of FNA:
|
I can't get FNA's version of mojoshader to build, are there instructions somewhere? I have all the dependencies I can figure out how to get, but cmake is exploding when I try to configure+generate with multiple errors. The one about SDL2 seems like it's probably the root cause but it's not clear to me how I'm supposed to fix it:
Am I meant to put SDL2's sources somewhere and then point cmake to them? Which revision of SDL2? |
Do I put SDL2 in a certain place? In my PATH? |
SDL2 won’t come into play, that’s a test program acting up. It should ignore that test when it’s not found. |
Latest MojoShader revision introduces some CMake changes that may make building easier. This should work now:
|
Fixed by 4c1c597 |
When loading all my lighting shaders with latest FNA, I get a compile error.
Here's the shader source mojoshader is feeding to the driver:
The relevant part of the HLSL shader, I think:
The text was updated successfully, but these errors were encountered: