Hot answers tagged

1 vote

How to pass voxel data to shader?

I know you can only pass the same variables for all vertex/fragments, but how can you pass an entire array of voxel data into a shader? Here's some methods I can think of: As part of the vertices. ...
  • 4,433
1 vote

GLSL Shader r GL_INVALID_OPERATION from glUniform1f error with textureSize

The reason it does not work is because I'm using LibGDX and by default the opengl version is 2 which is not compatible with the function textureSize. A workaround ...
  • 195

Only top scored, non community-wiki answers of a minimum length are eligible