mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2024-12-23 01:59:39 +08:00
e1c82709f0
all that.
28 lines
757 B
GLSL
28 lines
757 B
GLSL
#version 120
|
|
|
|
|
|
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;
|
|
} |