scg3  0.6
texture_none.glsl
Go to the documentation of this file.
1 /**
2  * \file texture_none.glsl
3  * \brief Determine fragment color without texture,
4  * provides external function applyTexture() to fragment shader.
5  */
6 
7 #version 150
8 
9 
10 vec4 applyTexture(const in vec4 texCoord, const in vec4 emissionAmbientDiffuse,
11  const in vec4 specular) {
12  return clamp(emissionAmbientDiffuse + specular, 0., 1.);
13 }