mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2025-06-26 10:12:54 +08:00
added a contrast setting. make beacon beams and enchantment glint work in the end and nether. tweak lighting in the end and nether.
This commit is contained in:
@ -1,25 +1,10 @@
|
||||
#version 120
|
||||
//#extension GL_EXT_gpu_shader4 : disable
|
||||
#include "lib/settings.glsl"
|
||||
|
||||
#include "/lib/settings.glsl"
|
||||
|
||||
varying vec4 lmtexcoord;
|
||||
varying vec4 color;
|
||||
varying vec4 normalMat;
|
||||
|
||||
|
||||
uniform sampler2D texture;
|
||||
uniform sampler2D gaux1;
|
||||
uniform vec4 lightCol;
|
||||
uniform vec3 sunVec;
|
||||
|
||||
uniform vec2 texelSize;
|
||||
uniform float skyIntensityNight;
|
||||
uniform float skyIntensity;
|
||||
uniform float sunElevation;
|
||||
uniform mat4 gbufferProjectionInverse;
|
||||
uniform mat4 gbufferModelViewInverse;
|
||||
uniform mat4 shadowModelView;
|
||||
uniform mat4 shadowProjection;
|
||||
|
||||
//faster and actually more precise than pow 2.2
|
||||
vec3 toLinear(vec3 sRGB){
|
||||
@ -32,17 +17,9 @@ vec3 toLinear(vec3 sRGB){
|
||||
//////////////////////////////VOID MAIN//////////////////////////////
|
||||
//////////////////////////////VOID MAIN//////////////////////////////
|
||||
/* DRAWBUFFERS:2 */
|
||||
|
||||
void main() {
|
||||
|
||||
gl_FragData[0] = vec4(toLinear( texture2D(texture, lmtexcoord.xy).rgb * color.rgb), 0.1);
|
||||
|
||||
gl_FragData[0] = texture2D(texture, lmtexcoord.xy);
|
||||
|
||||
vec3 albedo = toLinear(gl_FragData[0].rgb*color.rgb);
|
||||
|
||||
float exposure = texelFetch2D(gaux1,ivec2(10,37),0).r;
|
||||
|
||||
vec3 col = albedo*exp(-exposure*4.) * 255.0;
|
||||
|
||||
gl_FragData[0].rgb = col*color.a;
|
||||
gl_FragData[0].a = gl_FragData[0].a*0.1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user