Math for Game Developers - Fog

Поделиться
HTML-код
  • Опубликовано: 11 окт 2024
  • How to implement fog in a shader.
    Find the source code here: github.com/BSV...
    New video every Thursday. Question? Leave a comment below, or ask me on Twitter: / vinobs

Комментарии • 5

  • @paigerocks884
    @paigerocks884 10 лет назад +3

    You're so awesome for doing this. Helps us math-impaired devs a lot.

  • @GMLscripts
    @GMLscripts 10 лет назад +3

    Regarding the color blending formula [ vecFoggedDiffuse = vedDiffuse * (1-flFog) + vecFogColor * flFog ], GLSL has an built-in function which does exactly the same thing [ vecFoggedDiffuse = mix(vecDiffuse, vecFogColor, flFog) ].

    • @JorgeVinoRodriguez
      @JorgeVinoRodriguez  10 лет назад +1

      Oh I'm terrible about not using the glsl inbuilt functions :)

  • @vexedev
    @vexedev 10 лет назад

    can somebody please tell me what the drawing program used?