Project

General

Profile

« Previous | Next » 

Revision 0f10a0b6

Added by Leszek Koltunski about 4 years ago

A lot of changes.

1) main vertex shader: remove support for degree_object. This functionality will hopefully come back when we introduce other than circular regions.
2) MeshBase: remove the need to set a Bounding box (this is the point of the whole thing - we wanted to get rid of this so that the advances in MeshJoined will be easier)
3) Set ground for removing the MeshBase.setStretch / getStretch (another thing needed to advance MeshJoined )
4) since we removed the Bounding box, we need to change the DEFORN effect to have 1 additional parameter, the 'radius' which takes over the function of the bounding box in the vertex shader.
5) since the'res no bounding box, simplify the postprocessing Halo (remove EffectQueueMatrix.magnify() )
6) adjust applications.

After this we will hopefully be ready to introduce MeshBase.preApply(VertexEffect), i.e. bending several simple Meshes with any VertexEffect - including the freshly-introduced PseudoMatrix-Vertex effects like VertexEffectScale - and then combining them into one MeshJoined.

View differences:

src/main/java/org/distorted/library/effectqueue/EffectQueuePostprocess.java
178 178
    EffectQueueMatrix matrix = (EffectQueueMatrix)queues[0];
179 179
    EffectQueueVertex vertex = (EffectQueueVertex)queues[1];
180 180

  
181
    float inflate=0.0f;
182

  
183 181
    matrix.send(distance, mipmap, projection, mesh, 2);
184

  
185
    if( mHalo!=0.0f )
186
      {
187
      inflate = matrix.magnify(projection, width, height, mipmap, mesh, mHalo);
188
      }
189

  
190
    vertex.send(inflate,2);
182
    vertex.send(mHalo*0.01f,2);
191 183

  
192 184
    if( mA!=0.0f )
193 185
      {

Also available in: Unified diff