Project

General

Profile

« Previous | Next » 

Revision 14bd7976

Added by Leszek Koltunski almost 4 years ago

1) Cube: convert it to the latest library. Main difference: objects are rendered better, individual cubits have rounded corners.
2) Examples: some adjustments to MeshJoin & Predeform
3) Library: fix a bug in main_vertex_shader's 'degree' function, which didn't work proprely in case of a vertex which was exactly at the center (i.e. vector PS was zero)

View differences:

src/main/java/org/distorted/objects/Cubit.java
187 187
    computeRotationRow();
188 188

  
189 189
    mEffect = new DistortedEffects();
190
    mEffect.apply(mParent.mSinkEffect);
191 190
    mEffect.apply( new MatrixEffectMove(vector) );
192 191
    mEffect.apply( new MatrixEffectQuaternion(mQuatScramble, matrCenter));
193 192
    mEffect.apply(mRotateEffect);

Also available in: Unified diff