mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 09:04:38 +00:00
Clean GLSL fragment shader out.
This commit is contained in:
parent
87f34e3c4f
commit
ed0febea39
135 changed files with 451 additions and 239 deletions
|
|
@ -28,10 +28,12 @@ uniform sampler2D diffuseMap;
|
|||
|
||||
in vec2 texc0, texc1, texc2, texc3;
|
||||
|
||||
out vec4 OUT_col;
|
||||
|
||||
void main()
|
||||
{
|
||||
OUT_FragColor0 = texture(diffuseMap, texc0) * kernel.x;
|
||||
OUT_FragColor0 += texture(diffuseMap, texc1) * kernel.y;
|
||||
OUT_FragColor0 += texture(diffuseMap, texc2) * kernel.z;
|
||||
OUT_FragColor0 += texture(diffuseMap, texc3) * kernel.w;
|
||||
OUT_col = texture(diffuseMap, texc0) * kernel.x;
|
||||
OUT_col += texture(diffuseMap, texc1) * kernel.y;
|
||||
OUT_col += texture(diffuseMap, texc2) * kernel.z;
|
||||
OUT_col += texture(diffuseMap, texc3) * kernel.w;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue