All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Common.MatDefs.Misc.Sky.frag Maven / Gradle / Ivy

The newest version!
#import "Common/ShaderLib/GLSLCompat.glsllib"
#import "Common/ShaderLib/Optics.glsllib"

uniform ENVMAP m_Texture;

varying vec3 direction;

void main() {
    vec3 dir = normalize(direction);
    gl_FragColor = Optics_GetEnvColor(m_Texture, dir);
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy