About 115,000 results
Open links in new tab
  1. How to Practically Ship GLSL Shaders with your C++ Software

    std::ifstream vertexShaderFile("vertex.glsl"); std::ostringstream vertexBuffer; vertexBuffer << vertexShaderFile.rdbuf(); std::string vertexBufferStr = vertexBuffer.str(); // Warning: safe only until …

  2. What is the correct file extension for GLSL shaders? [closed]

    I use the following naming: ts.glsl gs.glsl vs.glsl fs.glsl but that's my choice and technically my programs don't even enforce any naming or extension scheme. The naming is for humans to read and know …

  3. glsl - WebGL - is there an alternative to embedding shaders in HTML ...

    May 5, 2011 · But it is cumbersome to keep uploading it to the server during this process. So if I want to keep the shaders out of the html file, is the only option to embed them as strings in the code? But …

  4. opengl - How to debug a GLSL shader? - Stack Overflow

    Mar 24, 2010 · I need to debug a GLSL program but I don't know how to output intermediate result. Is it possible to make some debug traces (like with printf) with GLSL without using external software like …

  5. WebGL/GLSL - How does a ShaderToy work? - Stack Overflow

    Oct 18, 2013 · 12 ShaderToy displays simple GLSL that is programmed to handle all the lighting, geometry, etc, it's not vertex geometry, it's raycasting most of it, the 3D stuff, or you can do 2D …

  6. Do conditional statements slow down shaders? - Stack Overflow

    245 What is it about shaders that even potentially makes if statements performance problems? It has to do with how shaders get executed and where GPUs get their massive computing performance from. …

  7. What is the difference between opengl and GLSL?

    Aug 10, 2016 · GLSL is a higher-level language that can be compiled and run on graphics hardware. So to sum it all up, programmable shaders are an integral part of the OpenGL framework (or any …

  8. shader - Random / noise functions for GLSL - Stack Overflow

    Sep 8, 2012 · As the GPU driver vendors don't usually bother to implement noiseX in GLSL, I'm looking for a "graphics randomization swiss army knife" utility function set, preferably optimised to use within …

  9. glsl - OpenGL ES 2.0 Shader best practices - Stack Overflow

    Oct 2, 2011 · I don't know much about guides to GLSL-ES, but the easiest to find and use is the ultimate source: The OpenGL ES Shading Language Specification (PDF). Extensions can pile on …

  10. opengl - Get supported GLSL versions - Stack Overflow

    Meanwhile, I want to check what GLSL versions the current driver/card supports, so I use this: glGetString ( GL_SHADING_LANGUAGE_VERSION ) Which, to my dismay, returns only "1.30". …