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

Please explain glsl expressions #25

Open
tigrazone opened this issue Nov 18, 2023 · 0 comments
Open

Please explain glsl expressions #25

tigrazone opened this issue Nov 18, 2023 · 0 comments

Comments

@tigrazone
Copy link

Hello!
What do this

void main() { gl_Position = vec4(vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2) * 2.0 - 1.0, 0.0, 1.0); }

and this piesces of code

c = findLSB(~(uSobol[uDimension]++));

i.e. "find lsb of 'not' of..."
Why LSB? Why 'not'?

@tigrazone tigrazone changed the title Please explain glsl instructions Please explain glsl expressions Nov 18, 2023
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