Merge pull request #346 from Azaezel/alpha40_glCompilefix

gl needs OUT_col filled out to return anything
This commit is contained in:
Brian Roberts 2020-10-03 12:30:39 -05:00 committed by GitHub
commit 39083577c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,8 @@ void main()
//early out if emissive //early out if emissive
if (getFlag(surface.matFlag, 0)) if (getFlag(surface.matFlag, 0))
{ {
return texture(colorBuffer, IN_uv0.xy); OUT_col = vec4(surface.albedo, 0);
return;
} }
#ifdef USE_SSAO_MASK #ifdef USE_SSAO_MASK