Search Unity

How are HLSL converted to GLSL when exporting to Mac?

Discussion in 'General Graphics' started by MikeyJY, May 27, 2022.

  1. MikeyJY

    MikeyJY

    Joined:
    Mar 2, 2018
    Posts:
    530
    For windows users the editor uses D3D11 as default, and we write our shaders on modified version of DirectX's High-Lever Shader Language/HLSL. Then when I export on Mac using OpenGL that means that those HLSL we write are converted automatically to GLSL? How is that possible. This whole cross-platform thing with DirectX, OpenGL, Vulkan, WebGL seems impossible to me
     
  2. Przemyslaw_Zaworski

    Przemyslaw_Zaworski

    Joined:
    Jun 9, 2017
    Posts:
    328