CGINC

cginc icon

Unity custom shader include

File type: Various data file

A Unity custom shader include is a source file containing code that Unity shaders can reuse, such as shared functions or definitions. Shader source references the include with an include directive.

What is cginc file?

File type category:
Various data file

Date updated: November 22, 2026

Unity, developed by Unity Technologies, is a cross-platform game engine and development environment.

A .cginc file contains shader code, commonly shared functions, definitions, or macros, that can be included by other shader source files. Custom .cginc files are usually created by users and kept with a Unity project so its shaders can use them. The extension remains in use for Unity shader includes; compatibility of the code depends on the shader pipeline and Unity version.

How to open cginc file?

Open a .cginc file in a text or code editor to read or edit its shader source. It is not a standalone shader to run by itself.

To use the include, add it to a Unity project and reference it from a shader with an include directive.

How to convert cginc file?

There is no standard conversion for a .cginc file. It contains shader source code, so to use it with a different shader language or pipeline, port the code manually and test it in the target environment.

Suggested software to open cginc file:

Related file extensions