Merge branch 'feature/osirisrex' of github.com:OpenSpace/OpenSpace into feature/osirisrex

This commit is contained in:
Erik Broberg
2016-08-30 15:06:35 -04:00
3 changed files with 4 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ return {
},
Textures = {
Type = "simple",
Color = "textures/white.png",
Color = "textures/gray.png",
Project = "textures/defaultProj.png",
Default = "textures/defaultProj.png"
},

View File

@@ -58,8 +58,8 @@ void main() {
if ((inRange(projected.x, 0, 1) && inRange(projected.y, 0, 1)) && (dot(n, boresight) < 0)) {
color = texture(projectionTexture, projected.xy);
color.a = 1.0;
stencil = vec4(1.0);
//color.a = 1.0;
stencil = vec4(1.0);
}
else {
color = vec4(0.0);//vec4(vec3(0.0), 1.0);

View File

@@ -47,7 +47,7 @@ Fragment getFragment() {
textureColor.rgb = mix(
textureColor.rgb,
projectionColor.rgb,
_projectionFading
_projectionFading * projectionColor.a
);
}