Source:
<code>public void process() { PerformanceMonitor.startActivity("rendering/chunksAlphaReject"); chunkMaterial.activateFeature(ShaderProgramFeature.FEATURE_ALPHA_REJECT); chunkMaterial.setFloat("time", worldProvider.getTime().getDays(), true); chunkMaterial.setInt("textureAtlas", 0, true); chunkMaterial.setInt("textureEffects", 1, true); chunkMaterial.setInt("textureLava", 2, true); if (isNormalMapping) { chunkMaterial.setInt("textureAtlasNormal", 3, true); <START> if (isParallaxMapping) { <END> chunkMaterial.setInt("textureAtlasHeight", 4, true); chunkMaterial.setFloat4("parallaxProperties", parallaxBias, parallaxScale, 0.0f, 0.0f, true); } } chunkMaterial.setFloat("clip", 0.0f, true); final Vector3f cameraPosition = activeCamera.getPosition(); int numberOfRenderedTriangles = 0; int numberOfChunksThatAreNotReadyYet = 0; while (renderQueues.chunksAlphaReject.size() > 0) { RenderableChunk chunk = renderQueues.chunksAlphaReject.poll(); if (chunk.hasMesh()) { final ChunkMesh chunkMesh = chunk.getMesh(); final Vector3f chunkPosition = chunk.getPosition().toVector3f(); chunkMesh.updateMaterial(chunkMaterial, chunkPosition, chunk.isAnimated()); numberOfRenderedTriangles += chunkMesh.render(ALPHA_REJECT, chunkPosition, cameraPosition); } else { numberOfChunksThatAreNotReadyYet++; } } worldRenderer.increaseTrianglesCount(numberOfRenderedTriangles); worldRenderer.increaseNotReadyChunkCount(numberOfChunksThatAreNotReadyYet); chunkMaterial.deactivateFeature(ShaderProgramFeature.FEATURE_ALPHA_REJECT); PerformanceMonitor.endActivity(); }</code><technical_language>rename - normalMappingIsEnabled - parallaxMappingIsEnabled please. creates inconsistency get/set/is standard implemented in rendering config, eventually a FlexibleConfig inconsistency disappear. way, parallax mapping working time (Josharias) playing it. in mind.. if fixed already.. =)</technical_language>

Target:
public void process() { PerformanceMonitor.startActivity("rendering/chunksAlphaReject"); chunkMaterial.activateFeature(ShaderProgramFeature.FEATURE_ALPHA_REJECT); chunkMaterial.setFloat("time", worldProvider.getTime().getDays(), true); chunkMaterial.setInt("textureAtlas", 0, true); chunkMaterial.setInt("textureEffects", 1, true); chunkMaterial.setInt("textureLava", 2, true); if (normalMappingIsEnabled) { chunkMaterial.setInt("textureAtlasNormal", 3, true); if (parallaxMappingIsEnabled) { chunkMaterial.setInt("textureAtlasHeight", 4, true); chunkMaterial.setFloat4("parallaxProperties", parallaxBias, parallaxScale, 0.0f, 0.0f, true); } } chunkMaterial.setFloat("clip", 0.0f, true); final Vector3f cameraPosition = activeCamera.getPosition(); int numberOfRenderedTriangles = 0; int numberOfChunksThatAreNotReadyYet = 0; while (renderQueues.chunksAlphaReject.size() > 0) { RenderableChunk chunk = renderQueues.chunksAlphaReject.poll(); if (chunk.hasMesh()) { final ChunkMesh chunkMesh = chunk.getMesh(); final Vector3f chunkPosition = chunk.getPosition().toVector3f(); chunkMesh.updateMaterial(chunkMaterial, chunkPosition, chunk.isAnimated()); numberOfRenderedTriangles += chunkMesh.render(ALPHA_REJECT, chunkPosition, cameraPosition); } else { numberOfChunksThatAreNotReadyYet++; } } worldRenderer.increaseTrianglesCount(numberOfRenderedTriangles); worldRenderer.increaseNotReadyChunkCount(numberOfChunksThatAreNotReadyYet); chunkMaterial.deactivateFeature(ShaderProgramFeature.FEATURE_ALPHA_REJECT); PerformanceMonitor.endActivity(); }