mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 11:30:06 +00:00
b0df68c490
Add support for GL_ARB_shading_language_include. Usage is identical to the way GL_GOOGLE_include_directive currently works glslang (since GL_ARB_shading_language_include is inherently a runtime feature and glslang is an offline compiler). Users can simulate their runtime environment by using a custom glslang::TShader::Includer or using filenames that match their GL runtime names. Closes #249.
15 lines
167 B
GLSL
15 lines
167 B
GLSL
#version 150
|
|
|
|
#extension GL_ARB_shading_language_include : enable
|
|
|
|
#define float4 vec4
|
|
|
|
#include "bar.h"
|
|
|
|
out vec4 color;
|
|
|
|
void main()
|
|
{
|
|
color = i1 + vec4(1.0);
|
|
}
|