Skip to content

Commit d3b7876

Browse files
committed
redundancy
1 parent b045629 commit d3b7876

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/textures/shaders/sphereFrag.glsl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ void main(){
8787
if (!isNaN){
8888
color.a = 1.;
8989
}
90-
bool cond = isValid(sampleCoord);
91-
if (!cond && selectTS){
92-
color.rgb *= 0.65;
90+
if (selectTS){
91+
bool cond = isValid(vUv);
92+
color.rgb *= cond ? 1. : 0.65;
9393
}
9494
} else {
9595
color = vec4(nanColor, 1.); // Black

0 commit comments

Comments
 (0)