Work on textures and lighting

This commit is contained in:
2023-03-23 21:17:24 +00:00
parent 1a2fc7c715
commit 1abfaa3cd0
25 changed files with 641 additions and 710 deletions
+2
View File
@@ -33,6 +33,8 @@ void main()
{
sumFive += vec4(texture(screenTexture, vTexPos + fiveOff[i]));
}
//sumFive = sumFive * 3 * sin(dot(vTexPos,vTexPos) * 10000);
//fColor = vec4 ( max( (sumFive / 10) , texture(screenTexture,vTexPos) ) );
fColor = vec4 ( max( (sumFive / 10) , texture(screenTexture,vTexPos) ) );
//fColor = max(texture(screenTexture,vTexPos), sumFive / 5);
//fColor = vec4 ( (sumFive / 5).rgb, max((sumFive/5.0).a,texture(screenTexture,vTexPos).a) );
+1 -1
View File
@@ -2,7 +2,7 @@
in vec2 vTexPos;
out vec4 fColor;
uniform sampler2D screenTexture;
layout (binding = 0) uniform sampler2D screenTexture;
void main()
{