Revision 7a5e538a
Added by Leszek Koltunski over 5 years ago
src/main/java/org/distorted/library/main/EffectQueuePostprocess.java | ||
---|---|---|
159 | 159 |
if( input.setAsInput() ) |
160 | 160 |
{ |
161 | 161 |
MeshBase mesh = node.getMesh(); |
162 |
float margin = mHalo*buffer.mMipmap; |
|
163 | 162 |
|
164 | 163 |
float halfW = input.getWidth() / 2.0f; |
165 | 164 |
float halfH = input.getHeight()/ 2.0f; |
... | ... | |
173 | 172 |
|
174 | 173 |
mesh.bindVertexAttribs(mPreProgram); |
175 | 174 |
|
176 |
node.getEffects().send(halfW, halfH, halfZ, margin, buffer, 2);
|
|
175 |
node.getEffects().send(halfW, halfH, halfZ, mHalo, buffer, 2);
|
|
177 | 176 |
|
178 | 177 |
if( mA!=0.0f ) |
179 | 178 |
{ |
Also available in: Unified diff
Progress with Inflate (building block of postprocessing effects: the proper way of marking a halo around a Mesh)
'Inflate' app testing the machanism. MeshFlat appears to be working, now we only need to fill up the per-vertex Inflate vector in the MeshCubes.