Project

General

Profile

« Previous | Next » 

Revision 1e672c1d

Added by Leszek Koltunski almost 4 years ago

Change 'tag' to a more appropriate name - 'association'.

View differences:

src/main/res/raw/main_vertex_shader.glsl
25 25
in vec3 a_Inflate;                   // This vector describes the direction this vertex needs to go when we 'inflate' the whole mesh.
26 26
                                     // If the mesh is locally smooth, this is equal to the normal vector. Otherwise (on sharp edges) - no.
27 27
in vec2 a_TexCoordinate;             // Per-vertex texture coordinate.
28
in float a_Tag;                      // Per-vertex tag. Connects the vertex (really the mesh component the vertex is a member of) to a vertex effect.
29
                                     // An effect will only be active on a vertex iff (a_Tag & vTag[effect]) != 0.  ( see VertexEffect.retSection() )
28
in float a_Association;              // Per-vertex association. Connects the vertex (really the mesh component the vertex is a member of)
29
                                     // to a vertex effect. An effect will only be active on a vertex iff (a_Association & vAssociation[effect]) != 0.
30
                                     // ( see VertexEffect.retSection() )
30 31

  
31 32
out vec3 v_Position;                 //
32 33
out vec3 v_endPosition;              // for Transform Feedback only
......
48 49
uniform vec4 vUniforms[3*NUM_VERTEX];// i-th effect is 3 consecutive vec4's: [3*i], [3*i+1], [3*i+2].
49 50
                                     // The first vec4 is the Interpolated values,
50 51
                                     // second vec4: first float - cache, next 3: Center, the third -  the Region.
51
uniform int vTag[NUM_VERTEX];        // Tags of the vertex effects. Tags are used to connect an effect to a Mesh component.
52
uniform int vAssociation[NUM_VERTEX];// Associations of the vertex effects. Those are used to connect an effect to a Mesh component.
52 53

  
53 54
//////////////////////////////////////////////////////////////////////////////////////////////
54 55
// HELPER FUNCTIONS

Also available in: Unified diff