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

GlslPipelineReact material blank with multiple buffer / General GLSL confusion #8

Open
eriksachse opened this issue Dec 19, 2023 · 0 comments

Comments

@eriksachse
Copy link

I'm trying to port a shader from Shadertoy to my React Three application.
I'm just very confused in working with buffer. The examples and documentation don't help me much and I don't know where I'm going wrong..

Here is a CSB I'm working with right now: https://codesandbox.io/p/sandbox/glsl-pipeline-material-fslk3y?file=%2Fsrc%2Fcomponents%2Fthree%2FScene.jsx%3A97%2C28

This is the Shadertoy I want to port: https://www.shadertoy.com/view/tljXWV

Thing is I'm not an expert and it seems so simple, but also very complex in terms of getting the right function/prop. In Shadertoy there is textureLod being used, and upon googling I'm not sure if that is even possible inside WebGL(?). There is this thing and that thing, but I just want multiple buffers in a feedback working. Same as now in the examples there is being color += being used in each buffer, while Shadertoy is always using fragColor as output. How is it that all the tools are so different, but in the end should be the same: Some cool flickering canvas doing fun stuff.

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

1 participant