nogame: only set background color in VR;

This commit is contained in:
bjorn 2023-05-12 14:28:53 +01:00
parent 3f5e3bb0ed
commit b8a8aa2755
1 changed files with 4 additions and 1 deletions

View File

@ -12,7 +12,10 @@ function lovr.load()
return
end
lovr.graphics.setBackgroundColor(0x20232c)
if lovr.headset.getPassthrough() == 'opaque' then
lovr.graphics.setBackgroundColor(0x20232c)
end
logo = lovr.graphics.newShader('unlit', 'logo')
end