Revision 70b6a155
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/library/effect/PostprocessEffectGlow.java | ||
---|---|---|
23 | 23 |
|
24 | 24 |
import org.distorted.library.main.DistortedEffects; |
25 | 25 |
import org.distorted.library.main.DistortedFramebuffer; |
26 |
import org.distorted.library.main.DistortedOutputSurface; |
|
26 | 27 |
import org.distorted.library.main.DistortedRenderState; |
27 | 28 |
import org.distorted.library.program.DistortedProgram; |
28 | 29 |
import org.distorted.library.type.Data1D; |
... | ... | |
143 | 144 |
* |
144 | 145 |
* @y.exclude |
145 | 146 |
*/ |
146 |
public int apply(float[] uniforms, int index, DistortedFramebuffer[] buffers)
|
|
147 |
public int apply(float[] uniforms, int index, DistortedOutputSurface[] buffers)
|
|
147 | 148 |
{ |
148 | 149 |
if( mProgram1 ==null) |
149 | 150 |
{ |
... | ... | |
153 | 154 |
|
154 | 155 |
DistortedRenderState.useStencilMark(); |
155 | 156 |
|
156 |
DistortedFramebuffer inBuffer = buffers[0]; |
|
157 |
DistortedFramebuffer outBuffer = buffers[mQualityLevel]; |
|
157 |
DistortedFramebuffer inBuffer = (DistortedFramebuffer)buffers[0];
|
|
158 |
DistortedFramebuffer outBuffer = (DistortedFramebuffer)buffers[mQualityLevel];
|
|
158 | 159 |
|
159 | 160 |
float w= outBuffer.getWidth(); |
160 | 161 |
float h= outBuffer.getHeight(); |
Also available in: Unified diff
Internal API change around postprocessing.