Project

General

Profile

« Previous | Next » 

Revision ad33f883

Added by Leszek Koltunski about 7 years ago

Minor

View differences:

src/main/res/raw/main_fragment_shader.glsl
25 25
varying vec3 v_Normal;                  // Interpolated normal for this fragment.
26 26
varying vec2 v_TexCoordinate;           // Interpolated texture coordinate per fragment.
27 27

  
28
uniform int fNumEffects;                // total number of fragment effects
29

  
30 28
#if NUM_FRAGMENT>0
29
uniform int fNumEffects;                // total number of fragment effects
31 30
uniform int fType[NUM_FRAGMENT];        // their types.
32 31
uniform vec4 fUniforms[2*NUM_FRAGMENT]; // i-th effect is 2 consecutive vec4's: [2*i], [2*i+1]. First vec4 is the Interpolated values,
33 32
                                        // next describes the Region, i.e. area over which the effect is active.
34 33

  
34
#if defined(SATURATION) || defined(SMOOTH_SATURATION)
35 35
const vec3 LUMI = vec3( 0.2125, 0.7154, 0.0721 );                                        
36
#endif
36 37

  
37 38
//////////////////////////////////////////////////////////////////////////////////////////////
38 39
// CHROMA EFFECT

Also available in: Unified diff