Skip to content

xLynxiummcx/Newb-fog-exp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Newb-fog-exp

How to use

    1. download latest and replace fogs and biome_client.json
    1. edit fog.h on your shader : change to float nlRenderFogFade(float relativeDist, vec3 FOG_COLOR, vec2 FOG_CONTROL) { #if NL_FOG_TYPE == 0 // no fog return 0.0; #else float fade; if (NL_FOG_TYPE == 1) { // linear transition fade = clamp((relativeDist - FOG_CONTROL.x) / (FOG_CONTROL.y - FOG_CONTROL.x), 0.0, 1.0); } else if (NL_FOG_TYPE == 2) { // smoother transition fade = smoothstep(FOG_CONTROL.x, FOG_CONTROL.y, relativeDist); } else if (NL_FOG_TYPE == 3) { // exponential fog float fogDensity = NL_EFOG; // Adjust this value for denser or lighter fog fade = 1.0 - exp(-relativeDist * fogDensity); }
    1. define NL_EFOG on config.h and set the value to your preference
    1. Build your shader
    1. This enables your shader to have smooth transition and adds dynamic effect
    1. this can changed to your liking

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published