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

Common.MatDefs.VR.normal.frag Maven / Gradle / Ivy

There is a newer version: 3.7.0-stable
Show newest version
//#define FRAGMENT_SHADER
#import "Common/ShaderLib/GLSLCompat.glsllib"

varying vec3 normal;

void main(void)
{
    gl_FragColor = vec4(normal.xy* 0.5 + 0.5,-normal.z* 0.5 + 0.5, 1.0);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy