Added space background sphere using a secondary command buffer
This commit is contained in:
parent
e1d45bb90e
commit
6f61d0fd63
8 changed files with 164 additions and 22 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue