mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 19:40:06 +00:00
13 lines
449 B
GLSL
13 lines
449 B
GLSL
#version 450 core
|
|
#extension GL_EXT_fragment_shading_rate : enable
|
|
#extension GL_ARB_shader_stencil_export : enable
|
|
#extension GL_ARB_fragment_shader_interlock : enable
|
|
#extension GL_AMD_shader_early_and_late_fragment_tests : enable
|
|
layout(location = 0) flat in int instanceIndex;
|
|
layout(early_and_late_fragment_tests_amd) in;
|
|
layout(depth_less) out float gl_FragDepth;
|
|
void main()
|
|
{
|
|
gl_FragDepth = float(instanceIndex) / float(81);
|
|
}
|