File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 4
4
"description" : " An aesthetic shader for Minecraft!\n \n v1.1.9b §3https://mcpedl.com/newb-shader/" ,
5
5
"name" : " Newb Shader" ,
6
6
"uuid" : " 95f774cf-4afa-73e7-a21a-72146307b1d2" ,
7
- "version" : [1 , 1 , 899 ],
7
+ "version" : [1 , 1 , 9 ],
8
8
"min_engine_version" : [1 , 14 , 10 ]
9
9
},
10
10
"modules" : [
11
11
{
12
12
"description" : " An aesthetic shader for Minecraft!" ,
13
13
"type" : " resources" ,
14
14
"uuid" : " 900f3d8b-37b4-465f-8f56-941687e36c35" ,
15
- "version" : [1 , 1 , 899 ]
15
+ "version" : [1 , 1 , 9 ]
16
16
}
17
17
],
18
18
"metadata" : {
Original file line number Diff line number Diff line change @@ -667,7 +667,6 @@ if(rainFactor > 0.0){
667
667
if(chunkBorder){ wetness = max(0.5+0.5*sin((cPos.x+cPos.z)*rd),0.6);}
668
668
else{ wetness = min(0.4+0.6*fastRand(cPos.xz*1.4),1.0);}
669
669
wetness *= lit.y*lit.y;
670
- color.rgb *= 1.0-0.5*wetness*rainFactor;
671
670
672
671
// cosine of incidence angle
673
672
float cosR = max(viewDir.y,float(wPos.y > 0.0));
@@ -680,11 +679,18 @@ if(rainFactor > 0.0){
680
679
streaks = sin(streaks*7.0);
681
680
streaks *= streaks;
682
681
683
- wetRefl.rgb *= 1.0+(streaks*float(uv1.y<0.88));
682
+ wetRefl.rgb *= 1.0+(0.7* streaks*float(uv1.y<0.88));
684
683
wetRefl.rgb += 0.9*torchLight*streaks;
685
684
686
685
// hide effect far from player
687
- wetRefl.a *= 1.0-clamp( (2.0*camDist/endDist)-1.0 ,0.0 ,1.0 );
686
+ float mask = clamp( (2.0*camDist/endDist)-1.0 ,0.0 ,1.0 );
687
+ wetRefl.a *= 1.0-mask;
688
+
689
+ // darken wet parts
690
+ color.rgb *= 1.0-0.5*wetness*rainFactor;
691
+ }
692
+ else{
693
+ color.rgb *= 1.0-0.4*lit.y*lit.y*rainFactor;
688
694
}
689
695
690
696
}
You can’t perform that action at this time.
0 commit comments