Project

General

Profile

« Previous | Next » 

Revision a2878a67

Added by Leszek Koltunski over 3 years ago

Remove the 'inflate' vertex attributs from the Mesh and file format, and replace that with a per-component 'inflate centers' (which are as of yet untested)

View differences:

src/main/java/org/distorted/library/effect/VertexEffectShear.java
72 72
    + "float new_nx = n.x - sy*n.y + sy*sz*n.z;         \n"
73 73
    + "float new_ny =-sx*n.x + tmp*(n.y - sz*n.z);      \n"
74 74
    + "n.x = new_nx;                                    \n"
75
    + "n.y = new_ny;                                    \n"
76

  
77
    + "#ifdef PREAPPLY                                  \n"
78

  
79
    + "float new_ix = inf.x - sy*inf.y + sy*sz*inf.z;   \n"
80
    + "float new_iy =-sx*inf.x + tmp*(inf.y - sz*inf.z);\n"
81
    + "inf.x = new_ix;                                  \n"
82
    + "inf.y = new_iy;                                  \n"
83

  
84
    + "#endif                                           \n";
75
    + "n.y = new_ny;                                    \n";
85 76
    }
86 77

  
87 78
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff