Skip to main content
Added requirements and GL wiki links
Source Link
Maximus Minimus
  • 20.3k
  • 2
  • 41
  • 69

A 3D texture will suit this use case much better, and it can be set up to automatically handle clamping for you rather than requiring conditions.

You're using GLSL version 440, which means OpenGL 4.4+, so you have support for everything that is required:

A 3D texture will suit this use case much better, and it can be set up to automatically handle clamping for you rather than requiring conditions.

A 3D texture will suit this use case much better, and it can be set up to automatically handle clamping for you rather than requiring conditions.

You're using GLSL version 440, which means OpenGL 4.4+, so you have support for everything that is required:

Source Link
Maximus Minimus
  • 20.3k
  • 2
  • 41
  • 69

A 3D texture will suit this use case much better, and it can be set up to automatically handle clamping for you rather than requiring conditions.