About 253,000 results
Open links in new tab
  1. What are some good resources for learning HLSL? [closed]

    The last time I tried learning HLSL, I made a few shaders and mostly understood what I was doing, but I still felt like I was stumbling in the dark. Most of what I learned I got from various …

  2. What does ddx (hlsl) actually do? - Game Development Stack …

    What does ddx (hlsl) actually do? Ask Question Asked 12 years, 2 months ago Modified 6 years, 10 months ago

  3. What are the pros and cons of HLSL vs GLSL vs cg? [closed]

    HLSL if you're going exclusively on Microsoft platforms. Now first developping in HLSL for windows to use DirectX and then convert to GLSL for linux and mac could be the better …

  4. Random number hlsl - Game Development Stack Exchange

    How do you generate a random number in HLSL? I'm asking because I want to try gpu ray tracing. You need to generate random directions in a pixel shader. So I want randFloat(), …

  5. Why does Unity use HLSL instead of GLSL?

    Apr 16, 2017 · Also DirectX is windows only API & HLSL is the shader programming language for DirectX. However, Unity3D for OSX is written in OpenGL. OpenGL uses a standard shader …

  6. What are registers in HLSL for? - Game Development Stack Exchange

    A given shader model exposes a particular set of registers to HLSL; these registers are underlying hardware registers on the GPU, like CPU registers, but have more refined scopes (for …

  7. What are screen space derivatives and when would I use them?

    Oct 3, 2016 · 28 I see the ddx and ddy glsl functions and the hlsl equivalents come up in shader code every now and then. I'm currently using them to do bump mapping without a tangent or …

  8. hlsl - Computing pixel's screen position in a vertex shader: right or ...

    As you are using hlsl I presume you use DirectX. You can use the input semantic VPOS (DX9) or SV_Position (DX>=10): MSDN - VPOS & SV_POSITION semantics When you pass the …

  9. glsl - How to write shaders that can be compiled for DirectX, …

    Feb 28, 2021 · Shaders could be authored in a standard HLSL syntax, then transpiled at build time into corresponding GLSL code. SPIRV-Cross is another transpiler maintained by the …

  10. How to sample a TextureCube texture - Game Development Stack …

    Apr 13, 2021 · In the old code I would declare a generic texture in HLSL and create a samplerCube to do the sampling. Then I would use the intrinsic texCube function to actual …