mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
adjust the alpha of the skybox to make it work with the glow effect
This commit is contained in:
parent
67b9dd248d
commit
6c606f630e
2 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue