processing / processing/processing4
Can't pass a 3D integer array into a GLSL shader
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 494
- Forks
- 183
- Avg merge
- 4h 39m
- Merged PRs (30d)
- 3
Description
Created by: zipCoder933
I have been working on a shader project, and I need to be able to use PShader.set() to pass a 3D array of integers into my GLSL shader, however I can't do it because Processing PShader.set() does not allow me to send multidimensional arrays of any kind
I tried all of the present set() methods that they have, and none work. It seems you only allow sending 1D arrays. I cannot find any way of sending a 3D int array as a uniform into my GLSL shader.
Any help?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at PShader.set() and inspect the existing overloads for array uniforms, then trace how values are passed into the GLSL shader. Done means defining and validating a supported path for passing a 3D integer array as a shader uniform.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100