mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
20 lines
601 B
GLSL
20 lines
601 B
GLSL
|
|
// Prototypes not needed when we concatinate files, and these breaks the compile on VMWare Fusion 4.0.4
|
|
// vec4 srcFragment();
|
|
// vec4 lightFragment(vec4 srcFragColor, float shadowFactor);
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
/// Fragment Shader - Standard
|
|
//--------------------------------------------------------------------------------------------------
|
|
void main()
|
|
{
|
|
#ifdef CVF_CHECK_DISCARD_FRAGMENT_IMPL
|
|
checkDiscardFragment();
|
|
#endif
|
|
|
|
vec4 color = srcFragment();
|
|
color = lightFragment(color, 1.0);
|
|
|
|
gl_FragColor = color;
|
|
}
|