private void renderLightInstances( final R2GeometryBufferUsableType gbuffer, final AreaInclusiveUnsignedLType lbuffer_area, final JCGLProfilingContextType pc_base, final JCGLTextureUnitContextParentType uc, final R2ShadowMapContextUsableType shadows, final R2MatricesObserverType m, final R2SceneLightsType s) { final JCGLProfilingContextType pc_instances = pc_base.getChildContext("instances"); if (s.lightsCount() > 0L) { final JCGLViewportsType g_v = this.g.getViewports(); g_v.viewportSet(lbuffer_area); this.light_consumer.input_state.set( gbuffer, m, uc, shadows, lbuffer_area, pc_instances); try { s.lightsExecute(this.light_consumer); } finally { this.light_consumer.input_state.clear(); } } }
private void renderSceneLights( final AreaInclusiveUnsignedLType area, final JCGLTextureUnitContextParentType uc, final R2MatricesObserverType m, final R2DebugVisualizerRendererParametersType s) { final R2SceneLightsType so = s.lights(); final JCGLViewportsType g_v = this.g.getViewports(); final long light_count = so.lightsCount(); if (light_count > 0L && s.showLights()) { g_v.viewportSet(area); this.light_consumer.matrices = m; this.light_consumer.texture_context = uc; this.light_consumer.sphere = s.unitSphere(); this.light_consumer.screen_area = area; try { so.lightsExecute(this.light_consumer); } finally { this.light_consumer.texture_context = null; this.light_consumer.matrices = null; this.light_consumer.sphere = null; this.light_consumer.screen_area = null; } } }
private void renderSceneOpaques( final AreaInclusiveUnsignedLType area, final JCGLTextureUnitContextParentType uc, final R2MatricesObserverType m, final R2DebugVisualizerRendererParametersType s) { final R2SceneOpaquesReadableType so = s.opaqueInstances(); final JCGLViewportsType g_v = this.g.getViewports(); final long instance_count = so.opaquesCount(); if (instance_count > 0L && s.showOpaqueInstances()) { g_v.viewportSet(area); this.opaque_consumer.screen_area = area; this.opaque_consumer.render_state.from(this.render_geom_state_base); this.opaque_consumer.matrices = m; this.opaque_consumer.texture_context = uc; this.opaque_consumer.parameters = s; try { so.opaquesExecute(this.opaque_consumer); } finally { this.opaque_consumer.screen_area = null; this.opaque_consumer.matrices = null; this.opaque_consumer.texture_context = null; this.opaque_consumer.parameters = null; } } }
pc_base.startMeasuringIfEnabled(); this.g33.getViewports().viewportSet(area);
try { final JCGLFramebuffersType g_fb = this.g.getFramebuffers(); final JCGLViewportsType g_v = this.g.getViewports();
"Framebuffer must be bound"); final JCGLViewportsType g_v = this.g.getViewports();
this.lines_batch.setLineSegments(segments); final JCGLViewportsType g_v = this.g.getViewports(); g_v.viewportSet(area);
"Framebuffer must be bound"); final JCGLViewportsType g_v = this.g.getViewports();
try { final JCGLFramebuffersType g_fb = this.g.getFramebuffers(); final JCGLViewportsType g_v = this.g.getViewports();
final JCGLViewportsType g_v = this.g.getViewports(); g_v.viewportSet(area);
final JCGLViewportsType g_v = this.g.getViewports(); g_v.viewportSet(area);
final JCGLShadersType g_sh = this.g.getShaders(); final JCGLDrawType g_dr = this.g.getDraw(); final JCGLViewportsType g_v = this.g.getViewports();