about summary refs log tree commit diff stats
path: root/.clang-format
blob: 8de7fe6557704dfe7e8353c5bf26c2044c3ad50c (plain) (blame)
1
2
---
  BasedOnStyle: Google
e.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#version 330 core

in vec2 UV;

out vec3 color;

uniform vec2 offset;
uniform sampler2D inTex;

void main()
{
  color = vec3(0.0);
  color += (5.0/16.0) * texture(inTex, UV - offset).rgb;
  color += (6.0/16.0) * texture(inTex, UV).rgb;
  color += (5.0/16.0) * texture(inTex, UV + offset).rgb;
}