# About gl\_FragColor of fragment shader

**URL:** <https://community.khronos.org/t/about-gl-fragcolor-of-fragment-shader/105102>\
**Category:** OpenGL: Basic Coding\
**Created:** [January 2, 2020, 5:38am UTC](https://community.khronos.org/t/about-gl-fragcolor-of-fragment-shader/105102 "2020-01-02T05:38:17Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![oldoldman](https://community.khronos.org/user_avatar/community.khronos.org/oldoldman/32/7840_2.png) [@oldoldman](https://community.khronos.org/u/oldoldman)\
**Post date:** [January 2, 2020, 1:18pm UTC](https://community.khronos.org/t/about-gl-fragcolor-of-fragment-shader/105102/3 "2020-01-02T13:18:05Z")

</div>

> [@GClements](#):
>
> layout(location=…)

```auto
#version 460 core

layout(location=0) out vec4 whatever;

void main()
{
    whatever = vec4(1,0,0,1);
};

```

also works. so does that mean location 0 is reserved for the color output ? Is there any sentences in the GL specification that describe this topic ? many thanks!

---

_[View the full topic](https://community.khronos.org/t/about-gl-fragcolor-of-fragment-shader/105102)._
