void GetMaterials(out float smoothness, out float skyOcclusion, out vec3 normal, out vec3 fresnel3,
                  vec2 coord) {
    vec3 specularData = texture2D(colortex3, coord).rgb;

    smoothness = specularData.r;
    smoothness *= smoothness;
    skyOcclusion = specularData.g;

	normal = DecodeNormal(texture2D(colortex6, coord).xy);

	fresnel3 = texture2D(colortex7, coord).rgb * smoothness;
}