Project

General

Profile

« Previous | Next » 

Revision dd89c7f4

Added by Leszek Koltunski about 5 years ago

Bugfix: default, MAX region cannot be of Float.MAX_VALUE radius - then in the shader we can have an overflow. Make it 1000000 in radius.

View differences:

src/main/java/org/distorted/library/effect/VertexEffect.java
19 19

  
20 20
package org.distorted.library.effect;
21 21

  
22
import org.distorted.library.type.Static4D;
23

  
22 24
///////////////////////////////////////////////////////////////////////////////////////////////////
23 25
/**
24 26
 * Abstract class that represents an Effect that works by injecting certain code into the main Vertex shader.
......
35 37
  private static String mGLSL = "";
36 38
  private static int mNumEnabled = 0;
37 39

  
40
  final static Static4D MAX_REGION = new Static4D(0,0,0,1000000);
41

  
38 42
///////////////////////////////////////////////////////////////////////////////////////////////////
39 43

  
40 44
  VertexEffect(EffectName name)

Also available in: Unified diff