processing / processing/processing4

Can't pass a 3D integer array into a GLSL shader

Open
#580 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

opengl
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.