Added space background sphere using a secondary command buffer

This commit is contained in:
saschawillems 2016-04-01 22:48:16 +02:00
parent e1d45bb90e
commit 6f61d0fd63
8 changed files with 164 additions and 22 deletions

View file

@ -21,7 +21,15 @@ layout (location = 4) out vec3 outLightVec;
void main()
{
outNormal = inNormal;
outColor = inColor;// * pushConsts.color;
if ( (inColor.r == 1.0) && (inColor.g == 0.0) && (inColor.b == 0.0))
{
outColor = pushConsts.color;
}
else
{
outColor = inColor;
}
gl_Position = pushConsts.mvp * vec4(inPos.xyz, 1.0);