Revision 05403bba
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/library/DistortedEffects.java | ||
---|---|---|
86 | 86 |
|
87 | 87 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
88 | 88 |
|
89 |
void drawPriv(float halfInputW, float halfInputH, MeshObject grid, DistortedFramebuffer df, long currTime)
|
|
89 |
void drawPriv(float halfInputW, float halfInputH, MeshObject mesh, DistortedFramebuffer df, long currTime)
|
|
90 | 90 |
{ |
91 | 91 |
GLES20.glViewport(0, 0, df.mWidth, df.mHeight); |
92 | 92 |
|
93 |
float halfZ = halfInputW*grid.zFactor;
|
|
93 |
float halfZ = halfInputW*mesh.zFactor;
|
|
94 | 94 |
|
95 | 95 |
mM.compute(currTime); |
96 | 96 |
mM.send(df,halfInputW,halfInputH,halfZ); |
... | ... | |
101 | 101 |
mF.compute(currTime); |
102 | 102 |
mF.send(halfInputW,halfInputH); |
103 | 103 |
|
104 |
grid.draw();
|
|
104 |
mesh.draw();
|
|
105 | 105 |
} |
106 | 106 |
|
107 | 107 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
108 | 108 |
|
109 |
void drawNoEffectsPriv(float halfInputW, float halfInputH, MeshObject grid, DistortedFramebuffer df)
|
|
109 |
void drawNoEffectsPriv(float halfInputW, float halfInputH, MeshObject mesh, DistortedFramebuffer df)
|
|
110 | 110 |
{ |
111 | 111 |
GLES20.glViewport(0, 0, df.mWidth, df.mHeight); |
112 | 112 |
|
113 |
mM.sendZero(df,halfInputW,halfInputH,halfInputW*grid.zFactor);
|
|
113 |
mM.sendZero(df,halfInputW,halfInputH,halfInputW*mesh.zFactor);
|
|
114 | 114 |
mV.sendZero(); |
115 | 115 |
mF.sendZero(); |
116 | 116 |
|
117 |
grid.draw();
|
|
117 |
mesh.draw();
|
|
118 | 118 |
} |
119 | 119 |
|
120 | 120 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
rename all the 'grid' variables to 'mesh'.