mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-23 20:50:59 -05:00
Always write values to the projected texture even when normal-test fails (closing #103)
This commit is contained in:
@@ -55,8 +55,11 @@ void main() {
|
||||
//invert gl coordinates
|
||||
projected.x = 1 - projected.x;
|
||||
|
||||
if((inRange(projected.x, 0, 1) && inRange(projected.y, 0, 1)) && (dot(n, boresight) < 0)) {
|
||||
if ((inRange(projected.x, 0, 1) && inRange(projected.y, 0, 1)) && (dot(n, boresight) < 0)) {
|
||||
color = texture(projectionTexture, projected.xy);
|
||||
color.a = 1.0;
|
||||
}
|
||||
else {
|
||||
color = vec4(vec3(0.0), 1.0);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user