Project

General

Profile

« Previous | Next » 

Revision 58ce3a2f

Added by Leszek Koltunski over 6 years ago

Simplify Mali app.

View differences:

src/main/java/org/distorted/examples/mali/MaliRenderer.java
106 106
      " uint index= uint(v_Pixel.x) + uint(v_Pixel.y) * u_Size.x;  \n" +
107 107
      " uint sum = 0u;                                             \n" +
108 108

  
109
      " if( index>=1u )                                            \n" +
110
      "   {                                                        \n" +
111
      "   //for(uint i=index; i>=index-1u; i--) sum += u_Records[i]; \n" +
112
      "   sum += u_Records[index];                               \n" +
113
      "   sum += u_Records[index-1u];                            \n" +
114
      "   }                                                        \n" +
115

  
109
      " for(uint i=index+1u; i>=index; i--) sum += u_Records[i];   \n" +
110
      " //sum += u_Records[index+1u];                              \n" +
111
      " //sum += u_Records[index];                                 \n" +
116 112
      " u_Records[index] = sum;                                    \n" +
117 113

  
118 114
      " fragColor = vec4(0.0,1.0,0.0,1.0);                         \n" +

Also available in: Unified diff