readd SSGI, fix spider eyes on iris, fix min light amount

all that.
This commit is contained in:
Xonk
2023-04-16 19:43:56 -04:00
parent 2ee6634935
commit e1c82709f0
11 changed files with 252 additions and 177 deletions

View File

@ -1,8 +1,28 @@
#version 120
// #define ENTITIES
// #define BLOCKENTITIES
// #define WORLD
#define SPIDEREYES
#include "gbuffers_all_solid.fsh"
varying vec4 color;
varying vec2 texcoord;
uniform sampler2D texture;
//faster and actually more precise than pow 2.2
vec3 toLinear(vec3 sRGB){
return sRGB * (sRGB * (sRGB * 0.305306011 + 0.682171111) + 0.012522878);
}
//////////////////////////////VOID MAIN//////////////////////////////
//////////////////////////////VOID MAIN//////////////////////////////
//////////////////////////////VOID MAIN//////////////////////////////
//////////////////////////////VOID MAIN//////////////////////////////
//////////////////////////////VOID MAIN//////////////////////////////
/* DRAWBUFFERS:18 */
void main() {
vec3 albedo = (texture2D(texture, texcoord).rgb * color.rgb);
gl_FragData[0].rgb = albedo;
gl_FragData[1].a = 0.5;
}