mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2025-06-22 00:37:35 +08:00
Latest Dev
its very scary to look at
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
#version 120
|
||||
#extension GL_ARB_shader_texture_lod : enable
|
||||
#extension GL_EXT_gpu_shader4 : enable
|
||||
#define SHADOW_DISABLE_ALPHA_MIPMAPS // Disables mipmaps on the transparency of alpha-tested things like foliage, may cost a few fps in some cases
|
||||
#define Stochastic_Transparent_Shadows // Highly recommanded to enable SHADOW_DISABLE_ALPHA_MIPMAPS with it. Uses noise to simulate transparent objects' shadows (not colored). It is also recommended to increase Min_Shadow_Filter_Radius with this.
|
||||
#include "lib/settings.glsl"
|
||||
|
||||
|
||||
varying vec2 texcoord;
|
||||
uniform sampler2D tex;
|
||||
uniform sampler2D noisetex;
|
||||
@ -12,9 +13,7 @@ uniform int frameCounter;
|
||||
//////////////////////////////VOID MAIN//////////////////////////////
|
||||
//////////////////////////////VOID MAIN//////////////////////////////
|
||||
//////////////////////////////VOID MAIN//////////////////////////////
|
||||
// float blueNoise(){
|
||||
// return texelFetch2D(noisetex, ivec2(gl_FragCoord.xy)%512, 0).a;
|
||||
// }
|
||||
|
||||
float R2_dither(){
|
||||
vec2 alpha = vec2(0.75487765, 0.56984026);
|
||||
return fract(alpha.x * gl_FragCoord.x + alpha.y * gl_FragCoord.y + 1.0/1.6180339887 ) ;
|
||||
|
Reference in New Issue
Block a user