mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
add PrecipitationRenderer (WIP)
This commit is contained in:
parent
fd59aa4f65
commit
b4456fdb51
10 changed files with 203 additions and 28 deletions
|
|
@ -19,7 +19,9 @@
|
|||
"gui/cross",
|
||||
"gui/refresh",
|
||||
"gui/folder_icon",
|
||||
"gui/settings_icon"
|
||||
"gui/settings_icon",
|
||||
"misc/rain",
|
||||
"misc/snow"
|
||||
],
|
||||
"fonts": [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ void main() {
|
|||
float depth = (a_distance/256.0);
|
||||
float alpha = a_color.a * tex_color.a;
|
||||
// anyway it's any alpha-test alternative required
|
||||
if (alpha < (u_alphaClip ? 0.5f : 0.2f))
|
||||
if (alpha < (u_alphaClip ? 0.5f : 0.15f))
|
||||
discard;
|
||||
f_color = mix(a_color * tex_color, vec4(fogColor,1.0),
|
||||
min(1.0, pow(depth*u_fogFactor, u_fogCurve)));
|
||||
|
|
|
|||
BIN
res/textures/misc/rain.png
Normal file
BIN
res/textures/misc/rain.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 347 KiB |
BIN
res/textures/misc/snow.png
Normal file
BIN
res/textures/misc/snow.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Loading…
Add table
Add a link
Reference in a new issue