Project

General

Profile

« Previous | Next » 

Revision be42e989

Added by Leszek Koltunski almost 4 years ago

Fix modifications of normals in VertexEffectScale and VertexEffectShear.

View differences:

src/main/java/org/distorted/library/effect/VertexEffectScale.java
47 47

  
48 48
  static String code()
49 49
    {
50
    return "v *= vUniforms[effect].xyz;";
50
    return
51

  
52
    "v *= vUniforms[effect].xyz;                        \n" +
53
    "float X = vUniforms[effect].y*vUniforms[effect].z; \n" +
54
    "float Y = vUniforms[effect].x*vUniforms[effect].z; \n" +
55
    "float Z = vUniforms[effect].x*vUniforms[effect].y; \n" +
56
    "n *= vec3(X,Y,Z);                                  \n";
51 57
    }
52 58

  
53 59
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff