Export to HLSL, CgFX, and GLSL

You can export your ShaderFX material to the following formats: HLSL, GLSL, or CgFX.

  1. In the ShaderFX editor, select the Material node.
  2. On the Properties panel, under HwShader / Shader Config, select the format that you want to export to from the drop-down list.
  3. Under HwShader / Filename, browse to the path that you want to export the shader file to.
  4. Click HwShader / Save to Disk.
  5. A shader file is saved to the location that you specified.

Note: The generated shader files are formatted for use inside 3ds Max. Therefore, if you are using a file outside of 3ds Max, you might need to adjust its formatting and semantics.