Examples of deactivateFeature()


Examples of org.terasology.rendering.assets.material.Material.deactivateFeature()

        handMesh.render();

        glPopMatrix();

        shader.deactivateFeature(ShaderProgramFeature.FEATURE_USE_MATRIX_STACK);
    }

    private void renderIcon(TextureRegion iconTexture, float bobOffset, float handMovementAnimationOffset) {
        Material shader = Assets.getMaterial("engine:prog.block");
        shader.activateFeature(ShaderProgramFeature.FEATURE_USE_MATRIX_STACK);
View Full Code Here

Examples of org.terasology.rendering.assets.material.Material.deactivateFeature()

            itemMesh.render();
        }

        glPopMatrix();

        shader.deactivateFeature(ShaderProgramFeature.FEATURE_USE_MATRIX_STACK);
    }

    private void renderBlock(BlockFamily blockFamily, float bobOffset, float handMovementAnimationOffset) {
        Block activeBlock = blockFamily.getArchetypeBlock();
        Vector3f playerPos = localPlayer.getPosition();
View Full Code Here

Examples of org.terasology.rendering.assets.material.Material.deactivateFeature()

        activeBlock.renderWithLightValue(sunlight, blockLight);

        glPopMatrix();

        shader.deactivateFeature(ShaderProgramFeature.FEATURE_USE_MATRIX_STACK);
    }

    private float calcBobbingOffset(float counter, float phaseOffset, float amplitude) {
        return (float) java.lang.Math.sin(2 * Math.PI * counter + phaseOffset) * amplitude;
    }
View Full Code Here

Examples of org.terasology.rendering.assets.material.Material.deactivateFeature()

            return;
        }

        mesh.render();

        mat.deactivateFeature(ShaderProgramFeature.FEATURE_USE_MATRIX_STACK);
    }

    private void generateMesh() {
        Tessellator tessellator = new Tessellator();
        for (BlockPart dir : BlockPart.values()) {
View Full Code Here

Examples of org.terasology.rendering.assets.material.Material.deactivateFeature()

            }
        }

        glDisable(GL11.GL_BLEND);

        defaultTextured.deactivateFeature(ShaderProgramFeature.FEATURE_ALPHA_REJECT);
    }

    private void renderHealth(Vector3i blockPos, HealthComponent health, Vector3f cameraPos) {
        if (!worldProvider.isBlockRelevant(blockPos)) {
            return;
View Full Code Here

Examples of org.terasology.rendering.assets.material.Material.deactivateFeature()

            while (renderQueueChunksOpaqueReflection.size() > 0) {
                renderChunk(renderQueueChunksOpaqueReflection.poll(), ChunkMesh.RenderPhase.OPAQUE, camera, ChunkRenderMode.REFLECTION);
            }
        }

        chunkShader.deactivateFeature(ShaderProgramFeature.FEATURE_USE_FORWARD_LIGHTING);
        PerformanceMonitor.endActivity();
    }

    private void renderShadowMap(Camera camera) {
        PerformanceMonitor.startActivity("Render World (Shadow Map)");
View Full Code Here

Examples of org.terasology.rendering.assets.material.Material.deactivateFeature()

            if (mode == ChunkRenderMode.DEFAULT || mode == ChunkRenderMode.REFLECTION) {
                // eclipse is paranoid about this - it thinks that shader could be null here
                if (shader != null) {
                    if (phase == ChunkMesh.RenderPhase.REFRACTIVE) {
                        shader.deactivateFeature(ShaderProgramFeature.FEATURE_REFRACTIVE_PASS);
                    } else if (phase == ChunkMesh.RenderPhase.ALPHA_REJECT) {
                        shader.deactivateFeature(ShaderProgramFeature.FEATURE_ALPHA_REJECT);
                    }
                }
            }
View Full Code Here

Examples of org.terasology.rendering.assets.material.Material.deactivateFeature()

                // eclipse is paranoid about this - it thinks that shader could be null here
                if (shader != null) {
                    if (phase == ChunkMesh.RenderPhase.REFRACTIVE) {
                        shader.deactivateFeature(ShaderProgramFeature.FEATURE_REFRACTIVE_PASS);
                    } else if (phase == ChunkMesh.RenderPhase.ALPHA_REJECT) {
                        shader.deactivateFeature(ShaderProgramFeature.FEATURE_ALPHA_REJECT);
                    }
                }
            }

            GL11.glPopMatrix();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.