INTERNAL REWORK. testers are needed.

This commit is contained in:
Xonk
2023-10-07 22:18:20 -04:00
parent 4d8a5105ed
commit a2fc114c4f
236 changed files with 5437 additions and 10283 deletions

View File

@ -1,29 +1,5 @@
#version 120
#include "/lib/settings.glsl"
#define SPIDER_EYES
varying vec4 lmtexcoord;
varying vec2 texcoord;
varying vec4 color;
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:28 */
void main() {
vec4 Albedo = texture2D(texture, texcoord.xy) * color;
gl_FragData[0] = vec4(toLinear(Albedo.rgb), Albedo.a);
gl_FragData[1] = vec4(0.0, 0.0, 0.0, 0.5);
}
#include "/dimensions/all_vanilla_emissives.fsh"