Revision 84d51487
Added by Leszek Koltunski about 5 years ago
src/main/java/org/distorted/library/main/EffectQueuePostprocess.java | ||
---|---|---|
170 | 170 |
|
171 | 171 |
mesh.bindVertexAttribs(mPreProgram); |
172 | 172 |
|
173 |
node.getEffects().send(halfW, halfH, halfZ, mHalo, buffer, 2); |
|
173 |
DistortedEffects effects = node.getEffects(); |
|
174 |
EffectQueueMatrix matrix = effects.getMatrix(); |
|
175 |
EffectQueueVertex vertex = effects.getVertex(); |
|
176 |
|
|
177 |
float inflate=0.0f; |
|
178 |
|
|
179 |
matrix.send(buffer,halfW,halfH,halfZ,2); |
|
180 |
|
|
181 |
if( mHalo!=0.0f ) |
|
182 |
{ |
|
183 |
inflate = matrix.magnify(buffer,halfW,halfH,halfZ,mHalo); |
|
184 |
} |
|
185 |
|
|
186 |
vertex.send(inflate,2); |
|
174 | 187 |
|
175 | 188 |
if( mA!=0.0f ) |
176 | 189 |
{ |
Also available in: Unified diff
Cut one interdependency between the EffectQueuePreprocess and DistortedEffects