About 116,000 results
Open links in new tab
  1. 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 …

  2. 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 …

  3. 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 …

  4. 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 …

  5. glsl - WebGL - is there an alternative to embedding shaders in …

    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 …

  6. 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 …

  7. 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 …

  8. 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 …

  9. glsl - Using multiple shaders - Game Development Stack Exchange

    Jan 11, 2012 · I'm currently studying opengl shaders but I can't figure out something: how to apply different shaders to the objects, for example, a teapot rendered using toon shader and another …

  10. c++ - Vulkan tutorial with glsl shaders - Stack Overflow

    Nov 26, 2018 · Vulkan expects SPIR-V shaders (Standard Portable Intermediate Representation). Only through extensions do vulkan implementations allow other inputs for shaders. Khronos …