0

I'm new to WebGL, i have the code below:

var n = WebGL.createProgram();
WebGL.useProgram(n);

WebGL.uniform1i(WebGL.getUniformLocation(n, "uO"), 2880);

What this command means, Offset textures "uO" by 2880 pixels or what ?

I think Offset works by 8x8 = 64 pixels ?

2
  • Without knowing the actual shader code this could mean anything. Commented May 23, 2024 at 9:43
  • read some tutorials? Commented May 27, 2024 at 23:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.