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

GPU Rendering #3

Closed
FluxOnIt opened this issue Aug 31, 2024 · 3 comments
Closed

GPU Rendering #3

FluxOnIt opened this issue Aug 31, 2024 · 3 comments

Comments

@FluxOnIt
Copy link

I found a little bug (I think)

in the ../src/shaders/fragment_to_equirectangular.glsl file I had to change the following lines for me to work.

line 4: uniform sampler2D textureSampler;
line 32: fragColor = texture(textureSampler, uv);

Before I could only render using my CPU.

This fix worked on my end.

Greetings

Oliver

@swift502
Copy link
Owner

swift502 commented Aug 31, 2024

Thanks for the report. 🙏

Do you remember what error message you were getting? I never had issues with this.

Edit: I see texture2D() was deprecated 12 years ago... lol. I'll change it.

@swift502
Copy link
Owner

swift502 commented Aug 31, 2024

Please let me know the error if you know, but regardless it should be fixed now, closing.

Thanks again.

@FluxOnIt
Copy link
Author

This was the error Message

Converting "input.png" to equirectangular.
Error: GLSL Compiler failed

fragment_shader

ERROR: 0:32: Invalid call of undeclared identifier 'texture2D'

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

No branches or pull requests

2 participants