Revision 2aeb75aa
Added by Leszek Koltunski almost 4 years ago
src/main/java/org/distorted/library/effect/VertexEffect.java | ||
---|---|---|
192 | 192 |
/** |
193 | 193 |
* Set Mesh association. |
194 | 194 |
* |
195 |
* This creates an association between this Vertex Effect and a Component of a Mesh.
|
|
196 |
* One can set the association of an Effect and of a Component, and the Effect will only be active on
|
|
197 |
* vertices of Components such that |
|
195 |
* This creates an association between a Component of a Mesh and this Vertex Effect.
|
|
196 |
* One can set two types of associations - an 'logical and' and a 'equal' associations and the Effect
|
|
197 |
* will only be active on vertices of Components such that
|
|
198 | 198 |
* |
199 |
* (effect assoc) & (component assoc) != 0 || (effect component) == (mesh component)
|
|
199 |
* (effect andAssoc) & (component andAssoc) != 0 || (effect equAssoc) == (mesh equAssoc)
|
|
200 | 200 |
* |
201 | 201 |
* (see main_vertex_shader) |
202 | 202 |
* |
203 | 203 |
* The point: this way we can configure the system so that each Vertex Effect acts only on a certain |
204 | 204 |
* subset of a Mesh, thus potentially significantly reducing the number of render calls. |
205 | 205 |
*/ |
206 |
public void setMeshAssociation(int component, int association)
|
|
206 |
public void setMeshAssociation(int andAssociation, int equAssociation)
|
|
207 | 207 |
{ |
208 |
mComponent = component;
|
|
209 |
mAssociation = association;
|
|
208 |
mAndAssociation = andAssociation;
|
|
209 |
mEquAssociation = equAssociation;
|
|
210 | 210 |
} |
211 | 211 |
} |
Also available in: Unified diff
Update Myanmar flag.