Skip to content

Commit

Permalink
Fixing shadow2DProj in GLSL (#2775)
Browse files Browse the repository at this point in the history
Removing erroneous extra bracket for aliasing shadow2DProj in GLSL. Would have caused compilation failure if used.
  • Loading branch information
toomuchvoltage authored Apr 20, 2022
1 parent 676df63 commit f6e0db1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer_gl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6487,15 +6487,15 @@ namespace bgfx { namespace gl
{
bx::write(&writer
, "#define shadow2D(_sampler, _coord) vec2(textureProj(_sampler, vec4(_coord, 1.0) ) )\n"
"#define shadow2DProj(_sampler, _coord) vec2(textureProj(_sampler, _coord) ) )\n"
"#define shadow2DProj(_sampler, _coord) vec2(textureProj(_sampler, _coord) )\n"
, &err
);
}
else
{
bx::write(&writer
, "#define shadow2D(_sampler, _coord) (textureProj(_sampler, vec4(_coord, 1.0) ) )\n"
"#define shadow2DProj(_sampler, _coord) (textureProj(_sampler, _coord) ) )\n"
"#define shadow2DProj(_sampler, _coord) (textureProj(_sampler, _coord) )\n"
, &err
);
}
Expand Down

0 comments on commit f6e0db1

Please sign in to comment.