Skip to content

Commit

Permalink
Samples: DeferredShading - fix GLSLES shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Mar 26, 2017
1 parent 05bac90 commit 0462236
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Samples/DeferredShading/src/GBufferMaterialGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,10 @@ GpuProgramPtr GBufferMaterialGeneratorImpl::generateFragmentShader(MaterialGener
else
{
ss << "#version " << shadingLangVersion << std::endl;
if(shadingLangVersion >= 150)
{
ss << "out vec4 fragData[2];";
}
}
if(shadingLangVersion >= 150)
{
ss << "out vec4 fragData[2];";
}
#ifdef WRITE_LINEAR_DEPTH
ss << inSemantic << " vec3 oViewPos;" << std::endl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ void main()
{
vec4 a1 = texture(Tex1, oUv0); // Attribute 1: Normal+depth

fragColour = vec4((a1.xyz+1)*0.5,0);
fragColour = vec4((a1.xyz+1.0)*0.5,0.0);
}

0 comments on commit 0462236

Please sign in to comment.