Search in sources :

Example 6 with Texture

use of io.xol.chunkstories.api.rendering.textures.Texture in project chunkstories by Hugobros3.

the class WorldRendererImplementation method renderWorldInternal.

protected void renderWorldInternal(RenderingInterface renderingInterface) {
    this.renderingGraph.render(renderingInterface);
    Texture finalBuffer = this.renderingGraph.getRenderPass("forward").resolvedOutputs.get("shadedBuffer");
    if (finalBuffer != null && finalBuffer instanceof Texture2DRenderTargetGL) {
        this.averageLuma.computeAverageLuma((Texture2DRenderTargetGL) finalBuffer);
    }
}
Also used : Texture2DRenderTargetGL(io.xol.chunkstories.renderer.opengl.texture.Texture2DRenderTargetGL) Texture(io.xol.chunkstories.api.rendering.textures.Texture) HeightmapArrayTexture(io.xol.chunkstories.renderer.terrain.HeightmapArrayTexture)

Aggregations

Texture (io.xol.chunkstories.api.rendering.textures.Texture)6 HeightmapArrayTexture (io.xol.chunkstories.renderer.terrain.HeightmapArrayTexture)2 WeakReference (java.lang.ref.WeakReference)2 Entry (java.util.Map.Entry)2 Entity (io.xol.chunkstories.api.entity.Entity)1 EntityOverlay (io.xol.chunkstories.api.entity.interfaces.EntityOverlay)1 RenderPass (io.xol.chunkstories.api.rendering.pass.RenderPass)1 SamplerType (io.xol.chunkstories.api.rendering.shader.Shader.SamplerType)1 ArrayTexture (io.xol.chunkstories.api.rendering.textures.ArrayTexture)1 Texture2D (io.xol.chunkstories.api.rendering.textures.Texture2D)1 ShaderGL (io.xol.chunkstories.renderer.opengl.shader.ShaderGL)1 Texture2DRenderTargetGL (io.xol.chunkstories.renderer.opengl.texture.Texture2DRenderTargetGL)1 HashMap (java.util.HashMap)1 GL11.glBindTexture (org.lwjgl.opengl.GL11.glBindTexture)1 GL13.glActiveTexture (org.lwjgl.opengl.GL13.glActiveTexture)1