Skip to content

Commit

Permalink
Renderer|FX|LensFlares: Drawing a white quad
Browse files Browse the repository at this point in the history
Next: texturing.
  • Loading branch information
skyjake committed Nov 18, 2013
1 parent 5528f3d commit e2b089e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doomsday/client/data/renderer.pack/shaders/lensflares.fsh
Expand Up @@ -2,7 +2,7 @@ uniform sampler2D uTex;
varying highp vec2 vUV;

void main(void) {
gl_FragColor = vec4(1.0, 0.0, 1.0, 1.0);
gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
/*
highp vec4 original = texture2D(uTex, vUV);
highp float intens =
Expand Down
5 changes: 2 additions & 3 deletions doomsday/client/src/render/fx/lensflares.cpp
Expand Up @@ -179,8 +179,7 @@ DENG2_PIMPL(LensFlares)
int const firstIdx = verts.size();

vtx.pos = pvl->light->lightSourceOrigin().xzy();
vtx.rgba = pvl->light->lightSourceColorf();
vtx.rgba.w = 1.0f;
vtx.rgba = Vector4f(pvl->light->lightSourceColorf(), 1.f);

vtx.texCoord[0] = uvRect.topLeft;
vtx.texCoord[1] = Vector2f(-1, -1) * radius;
Expand All @@ -199,7 +198,7 @@ DENG2_PIMPL(LensFlares)
verts << vtx;

// Make two triangles.
idx << firstIdx << firstIdx + 2 << firstIdx + 1
idx << firstIdx << firstIdx + 1 << firstIdx + 2
<< firstIdx << firstIdx + 2 << firstIdx + 3;
}

Expand Down

0 comments on commit e2b089e

Please sign in to comment.