fragmentShaderSource
enum fragmentShaderSource =
"
#version 420 core
//==============
in vec2 _normal;
in vec2 _texture;
in vec3 _color;
//==============
layout(location = 0) out float depth;
layout(location = 1) out vec4 normal;
layout(location = 2) out vec4 color;
void main() {
depth = gl_FragCoord.z;
normal.xy = _normal.xy;
color.xyz = _color;
}
";
three gl renderer
manifest constantsstructs