Ajout version Release/x64 avec les libraries x64 et tuning de la version Debug
This commit is contained in:
9
SQCSim2021/external/sfml251/examples/shader/resources/pixelate.frag
vendored
Normal file
9
SQCSim2021/external/sfml251/examples/shader/resources/pixelate.frag
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
uniform sampler2D texture;
|
||||
uniform float pixel_threshold;
|
||||
|
||||
void main()
|
||||
{
|
||||
float factor = 1.0 / (pixel_threshold + 0.001);
|
||||
vec2 pos = floor(gl_TexCoord[0].xy * factor + 0.5) / factor;
|
||||
gl_FragColor = texture2D(texture, pos) * gl_Color;
|
||||
}
|
Reference in New Issue
Block a user