Warning, /graphics/krita/krita/data/shaders/simple_texture_legacy.frag is written in an unsupported language. File is not indexed.

0001 /*
0002  *  shader for handling scaling
0003  *
0004  *  SPDX-License-Identifier: GPL-3.0-or-later
0005  */
0006 
0007 uniform sampler2D texture0;
0008 
0009 varying mediump vec4 v_textureCoordinate;
0010 
0011 #ifdef USE_OCIO
0012 #ifndef USE_OCIO_V2
0013 uniform sampler3D texture1;
0014 #endif
0015 #endif /* USE_OCIO */
0016 
0017 
0018 void main() {
0019     vec4 col = texture2D(texture0, v_textureCoordinate.st);
0020 
0021 
0022 #ifdef USE_OCIO
0023 #ifdef USE_OCIO_V2
0024     gl_FragColor = OCIODisplay(col);
0025 #else /* USE_OCIO_V2 */
0026     gl_FragColor = OCIODisplay(col, texture1);
0027 #endif /* USE_OCIO_V2 */
0028 #else /* USE_OCIO */
0029     gl_FragColor = col;
0030 #endif /* USE_OCIO */
0031 }