fyrox-impl 0.36.2

Feature-rich, easy-to-use, 2D/3D game engine with a scene editor. Like Godot, but in Rust.
Documentation
uniform sampler2D diffuseTexture;
uniform sampler2D aoSampler;
uniform sampler2D ambientTexture;

layout (std140) uniform Uniforms {
    mat4 worldViewProjection;
    vec4 ambientColor;
};

out vec4 FragColor;
in vec2 texCoord;

void main()
{
    float ambientOcclusion = texture(aoSampler, texCoord).r;
    vec4 ambientPixel = texture(ambientTexture, texCoord);
    FragColor = (ambientColor + ambientPixel) * S_SRGBToLinear(texture(diffuseTexture, texCoord));
    FragColor.rgb *= ambientOcclusion;
    FragColor.a = ambientPixel.a;

    // TODO: Implement IBL.
}