mirror of
https://github.com/kuhyx/engineer-thesis-WUT.git
synced 2026-07-06 18:43:11 +02:00
18 lines
389 B
Forth
18 lines
389 B
Forth
|
|
#version 330 core
|
||
|
|
out vec4 FragColor;
|
||
|
|
|
||
|
|
in vec3 ourColor;
|
||
|
|
in vec2 TexCoord;
|
||
|
|
|
||
|
|
// texture samplers
|
||
|
|
uniform sampler2D texture1;
|
||
|
|
uniform sampler2D texture2;
|
||
|
|
uniform int mixProportions; // set in OGL code
|
||
|
|
|
||
|
|
void main()
|
||
|
|
{
|
||
|
|
// linearly interpolate between both textures (80% container, 20% awesomeface)
|
||
|
|
FragColor = mix(texture(texture1, TexCoord), texture(texture2, TexCoord), mixProportions);
|
||
|
|
}
|
||
|
|
|