Revision f2367b75
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/library/program/DistortedProgram.java | ||
---|---|---|
105 | 105 |
if( currChar==';') break; |
106 | 106 |
} |
107 | 107 |
|
108 |
if( semicolon<len && semicolon-whiteSpace>=11 ) // "attribute a;" --> 11
|
|
108 |
if( semicolon<len && semicolon-whiteSpace>=4 ) // "in a;" --> 4
|
|
109 | 109 |
{ |
110 | 110 |
String subline = line.substring(whiteSpace,semicolon); |
111 | 111 |
int subLen = semicolon-whiteSpace; |
112 | 112 |
|
113 |
if( subline.startsWith("attribute"))
|
|
113 |
if( subline.startsWith("in "))
|
|
114 | 114 |
{ |
115 | 115 |
//android.util.Log.e("program", "GOOD LINE: " +subline+" subLen="+subLen); |
116 | 116 |
|
117 |
for(nameBegin=subLen-1; nameBegin>8; nameBegin--)
|
|
117 |
for(nameBegin=subLen-1; nameBegin>1; nameBegin--)
|
|
118 | 118 |
{ |
119 | 119 |
currChar=subline.charAt(nameBegin); |
120 | 120 |
|
Also available in: Unified diff
Upgrade from GLSL 1.00 to GLSL 3.00 ES
Introduce separate BLUR1 and BLUR2 shaders, the second one marging (writing to gl_FragDepth still does not work)