adjust the alpha of the skybox to make it work with the glow effect

This commit is contained in:
Sam Gateau 2015-05-11 15:22:13 -07:00
parent 67b9dd248d
commit 6c606f630e
2 changed files with 2 additions and 4 deletions

View file

@ -20,6 +20,5 @@ varying vec3 color;
void main(void) {
vec3 coord = normalize(normal);
vec4 texel = textureCube(cubeMap, coord);
// gl_FragData[0] = vec4(texel.xyz * color, texel.w);
gl_FragData[0] = vec4(texel.xyz, 1.0);
gl_FragData[0] = vec4(texel.xyz * color, 0.0);
}

View file

@ -22,8 +22,7 @@ varying vec3 color;
void main(void) {
texcoord = gl_Vertex.xy;
// pass along the diffuse color
color = vec3(texcoord, 0.0);
color = vec3(1.0, 1.0, 1.0);
// standard transform
TransformCamera cam = getTransformCamera();