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

Common.MatDefs.Terrain.Terrain.vert Maven / Gradle / Ivy

There is a newer version: 3.7.0-stable
Show newest version
#import "Common/ShaderLib/GLSLCompat.glsllib"
uniform mat4 g_WorldViewProjectionMatrix;

attribute vec3 inPosition;
attribute vec3 inNormal;
attribute vec2 inTexCoord;

varying vec2 texCoord;

#ifdef TRI_PLANAR_MAPPING
  varying vec4 vVertex;
  varying vec3 vNormal;
#endif

void main(){
    gl_Position = g_WorldViewProjectionMatrix * vec4(inPosition, 1.0);
    texCoord = inTexCoord;

#ifdef TRI_PLANAR_MAPPING
    vVertex = vec4(inPosition,0.0);
    vNormal = inNormal;
#endif

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy