* Removed evil code
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7846 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
a24becee32
commit
80ac165e67
@ -86,7 +86,7 @@ platform.active=default_platform
|
||||
run.classpath=\
|
||||
${javac.classpath}:\
|
||||
${build.classes.dir}
|
||||
run.jvmargs=-Xbatch -XX:CICompilerCount=1
|
||||
run.jvmargs=-Xms30m -Xmx30m -XX:MaxDirectMemorySize=256M
|
||||
run.test.classpath=\
|
||||
${javac.test.classpath}:\
|
||||
${build.test.classes.dir}
|
||||
|
@ -1,6 +1,6 @@
|
||||
#import "Common/ShaderLib/Optics.glsllib"
|
||||
|
||||
uniform ENVMAP m_Texture2;
|
||||
uniform ENVMAP m_Texture;
|
||||
|
||||
varying vec3 direction;
|
||||
|
||||
|
@ -61,7 +61,6 @@ public class PointLight extends Light {
|
||||
if (owner.getWorldBound() != null){
|
||||
BoundingVolume bv = owner.getWorldBound();
|
||||
lastDistance = bv.distanceSquaredTo(position);
|
||||
System.out.println(lastDistance + ", " + owner);
|
||||
}else{
|
||||
lastDistance = owner.getWorldTranslation().distanceSquared(position);
|
||||
}
|
||||
|
@ -83,13 +83,6 @@ public class TempVars {
|
||||
}
|
||||
};
|
||||
|
||||
private static final ThreadLocal<TempVars> tempVars = new ThreadLocal<TempVars>(){
|
||||
@Override
|
||||
public TempVars initialValue() {
|
||||
return new TempVars();
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* This instance of TempVars has been retrieved but not released yet.
|
||||
*/
|
||||
@ -98,13 +91,6 @@ public class TempVars {
|
||||
private TempVars() {
|
||||
}
|
||||
|
||||
public static TempVars get(){
|
||||
return tempVars.get();
|
||||
}
|
||||
|
||||
public void release(){
|
||||
}
|
||||
|
||||
/**
|
||||
* Acquire an instance of the TempVar class.
|
||||
* You have to release the instance after use by calling the
|
||||
@ -114,7 +100,6 @@ public class TempVars {
|
||||
*
|
||||
* @return A TempVar instance
|
||||
*/
|
||||
/*
|
||||
public static TempVars get() {
|
||||
TempVarsStack stack = varsLocal.get();
|
||||
|
||||
@ -134,7 +119,6 @@ public class TempVars {
|
||||
|
||||
return instance;
|
||||
}
|
||||
*/
|
||||
|
||||
/**
|
||||
* Releases this instance of TempVars.
|
||||
@ -143,7 +127,6 @@ public class TempVars {
|
||||
* e.g. Acquiring vars1, then acquiring vars2, vars2 MUST be released
|
||||
* first otherwise an exception will be thrown.
|
||||
*/
|
||||
/*
|
||||
public void release() {
|
||||
if (!isUsed){
|
||||
throw new IllegalStateException("This instance of TempVars was already released!");
|
||||
@ -160,7 +143,7 @@ public class TempVars {
|
||||
if (stack.tempVars[stack.index] != this){
|
||||
throw new IllegalStateException("An instance of TempVars has not been released in a called method!");
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
/**
|
||||
* For interfacing with OpenGL in Renderer.
|
||||
|
Loading…
x
Reference in New Issue
Block a user