Skip to content

Instantly share code, notes, and snippets.

@dariomanesku
Last active April 22, 2016 08:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dariomanesku/be10483eeb9749d7550e440ba42b8c5e to your computer and use it in GitHub Desktop.
Save dariomanesku/be10483eeb9749d7550e440ba42b8c5e to your computer and use it in GitHub Desktop.
Fix diff for examples/xx_arealights/helpers.sh to avoid " error C7528: OpenGL reserves names containing '__' ".
164c164
< vec3 FetchDiffuseFilteredTexture(sampler2D texLightFiltered, vec3 _p1, vec3 _p2, vec3 _p3, vec3 _p4)
---
> vec3 FetchDiffuseFilteredTexture(sampler2D texLightFiltered, vec3 p1_, vec3 p2_, vec3 p3_, vec3 p4_)
167,168c167,168
< vec3 V1 = _p2 - _p1;
< vec3 V2 = _p4 - _p1;
---
> vec3 V1 = p2_ - p1_;
> vec3 V2 = p4_ - p1_;
171c171
< float planeDistxPlaneArea = dot(planeOrtho, _p1);
---
> float planeDistxPlaneArea = dot(planeOrtho, p1_);
173c173
< vec3 P = planeDistxPlaneArea * planeOrtho / planeAreaSquared - _p1;
---
> vec3 P = planeDistxPlaneArea * planeOrtho / planeAreaSquared - p1_;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment