mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2025-06-25 09:52:56 +08:00
Add the whole ass shader
it has begun
This commit is contained in:
24
shaders/gbuffers_skytextured.fsh
Normal file
24
shaders/gbuffers_skytextured.fsh
Normal file
@ -0,0 +1,24 @@
|
||||
#version 120
|
||||
|
||||
/*
|
||||
!! DO NOT REMOVE !!
|
||||
This code is from Chocapic13' shaders
|
||||
Read the terms of modification and sharing before changing something below please !
|
||||
!! DO NOT REMOVE !!
|
||||
*/
|
||||
|
||||
/* RENDERTARGETS:12 */
|
||||
|
||||
varying vec4 color;
|
||||
varying vec2 texcoord;
|
||||
//faster and actually more precise than pow 2.2
|
||||
vec3 toLinear(vec3 sRGB){
|
||||
return sRGB * (sRGB * (sRGB * 0.305306011 + 0.682171111) + 0.012522878);
|
||||
}
|
||||
|
||||
uniform sampler2D texture;
|
||||
void main() {
|
||||
|
||||
gl_FragData[0] = texture2D(texture,texcoord.xy)*color;
|
||||
gl_FragData[0].rgb = gl_FragData[0].rgb*gl_FragData[0].a;
|
||||
}
|
Reference in New Issue
Block a user