minor formatting changes
This commit is contained in:
parent
961bf92734
commit
f986043745
@ -72,7 +72,7 @@ public class DefaultTechniqueDefLogic implements TechniqueDefLogic {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ColorRGBA getAmbientColor(LightList lightList, boolean removeLights, ColorRGBA ambientLightColor) {
|
protected static ColorRGBA getAmbientColor(LightList lightList, boolean removeLights, ColorRGBA ambientLightColor) {
|
||||||
ambientLightColor.set(0, 0, 0, 1);
|
ambientLightColor.set(0, 0, 0, 1);
|
||||||
for (int j = 0; j < lightList.size(); j++) {
|
for (int j = 0; j < lightList.size(); j++) {
|
||||||
Light l = lightList.get(j);
|
Light l = lightList.get(j);
|
||||||
|
@ -120,7 +120,6 @@ public final class SinglePassLightingLogic extends DefaultTechniqueDefLogic {
|
|||||||
int endIndex = numLights + startIndex;
|
int endIndex = numLights + startIndex;
|
||||||
for (curIndex = startIndex; curIndex < endIndex && curIndex < lightList.size(); curIndex++) {
|
for (curIndex = startIndex; curIndex < endIndex && curIndex < lightList.size(); curIndex++) {
|
||||||
|
|
||||||
|
|
||||||
Light l = lightList.get(curIndex);
|
Light l = lightList.get(curIndex);
|
||||||
if (l.getType() == Light.Type.Ambient) {
|
if (l.getType() == Light.Type.Ambient) {
|
||||||
endIndex++;
|
endIndex++;
|
||||||
@ -197,7 +196,6 @@ public final class SinglePassLightingLogic extends DefaultTechniqueDefLogic {
|
|||||||
return curIndex;
|
return curIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void render(RenderManager renderManager, Shader shader, Geometry geometry, LightList lights) {
|
public void render(RenderManager renderManager, Shader shader, Geometry geometry, LightList lights) {
|
||||||
int nbRenderedLights = 0;
|
int nbRenderedLights = 0;
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.jme3.system.lwjgl;
|
package com.jme3.system.lwjgl;
|
||||||
|
|
||||||
import com.jme3.input.lwjgl.JInputJoyInput;
|
import com.jme3.input.lwjgl.JInputJoyInput;
|
||||||
@ -87,10 +86,10 @@ public abstract class LwjglContext implements JmeContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void printContextInitInfo() {
|
protected void printContextInitInfo() {
|
||||||
logger.log(Level.INFO, "LWJGL {0} context running on thread {1}\n" +
|
logger.log(Level.INFO, "LWJGL {0} context running on thread {1}\n"
|
||||||
" * Graphics Adapter: {2}\n" +
|
+ " * Graphics Adapter: {2}\n"
|
||||||
" * Driver Version: {3}\n" +
|
+ " * Driver Version: {3}\n"
|
||||||
" * Scaling Factor: {4}",
|
+ " * Scaling Factor: {4}",
|
||||||
new Object[]{Sys.getVersion(), Thread.currentThread().getName(),
|
new Object[]{Sys.getVersion(), Thread.currentThread().getName(),
|
||||||
Display.getAdapter(), Display.getVersion(),
|
Display.getAdapter(), Display.getVersion(),
|
||||||
Display.getPixelScaleFactor()});
|
Display.getPixelScaleFactor()});
|
||||||
@ -162,6 +161,7 @@ public abstract class LwjglContext implements JmeContext {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void loadNatives() {
|
protected void loadNatives() {
|
||||||
if (JmeSystem.isLowPermissions()) {
|
if (JmeSystem.isLowPermissions()) {
|
||||||
return;
|
return;
|
||||||
@ -198,8 +198,8 @@ public abstract class LwjglContext implements JmeContext {
|
|||||||
|
|
||||||
protected void initContextFirstTime() {
|
protected void initContextFirstTime() {
|
||||||
if (!GLContext.getCapabilities().OpenGL20) {
|
if (!GLContext.getCapabilities().OpenGL20) {
|
||||||
throw new RendererException("OpenGL 2.0 or higher is " +
|
throw new RendererException("OpenGL 2.0 or higher is "
|
||||||
"required for jMonkeyEngine");
|
+ "required for jMonkeyEngine");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settings.getRenderer().equals(AppSettings.LWJGL_OPENGL2)
|
if (settings.getRenderer().equals(AppSettings.LWJGL_OPENGL2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user