Search code examples
glslglsles

Open texture from fragment shader


I'm trying to write a shader for Minecraft bedrock edition, and since I don't have access to the code of the game, just the GLSLes shaders, I was wondering if there was any way for me to access a texture from the fragment shader without having to pass it through the c++ code.


Solution

  • The answer is as stated in the comments above : there's no way. GLSL doesn't work this way.