public LineGrapher(final int width, final int height, final Renderer renderer) { super(width, height, renderer); // Setup our static horizontal graph lines createHLines(); _defBlendState = new BlendState(); _defBlendState.setEnabled(true); _defBlendState.setBlendEnabled(true); _defBlendState.setSourceFunction(BlendState.SourceFunction.SourceAlpha); _defBlendState.setDestinationFunction(BlendState.DestinationFunction.OneMinusSourceAlpha); _graphRoot.setRenderState(_defBlendState); _graphRoot.getSceneHints().setCullHint(CullHint.Never); }
public TimedAreaGrapher(final int width, final int height, final Renderer renderer, final ContextCapabilities caps) { super(width, height, renderer, caps); // Setup our static horizontal graph lines createHLines(); _defBlendState = new BlendState(); _defBlendState.setEnabled(true); _defBlendState.setBlendEnabled(true); _defBlendState.setSourceFunction(BlendState.SourceFunction.SourceAlpha); _defBlendState.setDestinationFunction(BlendState.DestinationFunction.OneMinusSourceAlpha); _graphRoot.setRenderState(_defBlendState); _graphRoot.getSceneHints().setCullHint(CullHint.Never); }
public LineGrapher(final int width, final int height, final Renderer renderer, final ContextCapabilities caps) { super(width, height, renderer, caps); // Setup our static horizontal graph lines createHLines(); _defBlendState = new BlendState(); _defBlendState.setEnabled(true); _defBlendState.setBlendEnabled(true); _defBlendState.setSourceFunction(BlendState.SourceFunction.SourceAlpha); _defBlendState.setDestinationFunction(BlendState.DestinationFunction.OneMinusSourceAlpha); _graphRoot.setRenderState(_defBlendState); _graphRoot.getSceneHints().setCullHint(CullHint.Never); }
public TimedAreaGrapher(final int width, final int height, final Renderer renderer) { super(width, height, renderer); // Setup our static horizontal graph lines createHLines(); _defBlendState = new BlendState(); _defBlendState.setEnabled(true); _defBlendState.setBlendEnabled(true); _defBlendState.setSourceFunction(BlendState.SourceFunction.SourceAlpha); _defBlendState.setDestinationFunction(BlendState.DestinationFunction.OneMinusSourceAlpha); _graphRoot.setRenderState(_defBlendState); _graphRoot.getSceneHints().setCullHint(CullHint.Never); }
blendState.setEnabled(!firstDrawnClip); firstDrawnClip = false;
public TabledLabelGrapher(final int width, final int height, final Renderer renderer, final ContextCapabilities caps) { super(width, height, renderer, caps); _defBlendState = new BlendState(); _defBlendState.setEnabled(true); _defBlendState.setBlendEnabled(true); _defBlendState.setSourceFunction(BlendState.SourceFunction.SourceAlpha); _defBlendState.setDestinationFunction(BlendState.DestinationFunction.OneMinusSourceAlpha); _graphRoot.setRenderState(_defBlendState); _bgQuad.getSceneHints().setRenderBucketType(RenderBucketType.Ortho); _bgQuad.setDefaultColor(new ColorRGBA(ColorRGBA.BLACK)); _graphRoot.getSceneHints().setCullHint(CullHint.Never); }
clipTextureState.setTexture(textureClipmap.getTexture()); if (first) { blendState.setEnabled(false); first = false; } else { blendState.setEnabled(true);
public TabledLabelGrapher(final int width, final int height, final Renderer renderer) { super(width, height, renderer); _defBlendState = new BlendState(); _defBlendState.setEnabled(true); _defBlendState.setBlendEnabled(true); _defBlendState.setSourceFunction(BlendState.SourceFunction.SourceAlpha); _defBlendState.setDestinationFunction(BlendState.DestinationFunction.OneMinusSourceAlpha); _graphRoot.setRenderState(_defBlendState); _bgQuad.getSceneHints().setRenderBucketType(RenderBucketType.OrthoOrder); _bgQuad.setDefaultColor(new ColorRGBA(ColorRGBA.BLACK)); _graphRoot.getSceneHints().setCullHint(CullHint.Never); }
/** * Create setup to use as fallback if fancy water is not supported. */ private void createFallbackData() { fallbackTextureState = new TextureState(); fallbackTextureState.setEnabled(true); fallbackTexture = TextureManager.load(fallbackMapTextureString, Texture.MinificationFilter.Trilinear, TextureStoreFormat.GuessCompressedFormat, true); fallbackTextureState.setTexture(fallbackTexture, 0); fallbackTexture.setWrap(Texture.WrapMode.Repeat); fallbackTextureStateMatrix = new Matrix4(); as1 = new BlendState(); as1.setBlendEnabled(true); as1.setTestEnabled(true); as1.setSourceFunction(BlendState.SourceFunction.SourceAlpha); as1.setDestinationFunction(BlendState.DestinationFunction.OneMinusSourceAlpha); as1.setEnabled(true); }
public void resetTexture() { _texture.setWrap(Texture.WrapMode.EdgeClamp); _texture.setMinificationFilter(Texture.MinificationFilter.BilinearNoMipMaps); _texture.setMagnificationFilter(Texture.MagnificationFilter.Bilinear); _texture.setTextureStoreFormat(TextureStoreFormat.RGBA8); _tRenderer.setupTexture(_texture); final TextureState ts = new TextureState(); ts.setEnabled(true); ts.setTexture(_texture, 0); _imposterQuad.setRenderState(ts); // Add a blending mode... This is so the background of the texture is // transparent. final BlendState as1 = new BlendState(); as1.setBlendEnabled(true); as1.setSourceFunction(BlendState.SourceFunction.SourceAlpha); as1.setDestinationFunction(BlendState.DestinationFunction.OneMinusSourceAlpha); as1.setTestEnabled(true); as1.setTestFunction(BlendState.TestFunction.GreaterThan); as1.setEnabled(true); _imposterQuad.setRenderState(as1); }
public void resetTexture() { _texture.setWrap(Texture.WrapMode.EdgeClamp); _texture.setMinificationFilter(Texture.MinificationFilter.BilinearNoMipMaps); _texture.setMagnificationFilter(Texture.MagnificationFilter.Bilinear); _texture.setTextureStoreFormat(TextureStoreFormat.RGBA8); _tRenderer.setupTexture(_texture); final TextureState ts = new TextureState(); ts.setEnabled(true); ts.setTexture(_texture, 0); _imposterQuad.setRenderState(ts); // Add a blending mode... This is so the background of the texture is // transparent. final BlendState as1 = new BlendState(); as1.setBlendEnabled(true); as1.setSourceFunction(BlendState.SourceFunction.SourceAlpha); as1.setDestinationFunction(BlendState.DestinationFunction.OneMinusSourceAlpha); as1.setTestEnabled(true); as1.setTestFunction(BlendState.TestFunction.GreaterThan); as1.setEnabled(true); _imposterQuad.setRenderState(as1); }
as.setSourceFunction(BlendState.SourceFunction.One); as.setDestinationFunction(BlendState.DestinationFunction.One); as.setEnabled(true); fullScreenQuad.setRenderState(as);
public OutlinePass(final boolean antialiased) { _wireframeState = new WireframeState(); _wireframeState.setFace(WireframeState.Face.FrontAndBack); _wireframeState.setLineWidth(DEFAULT_LINE_WIDTH); _wireframeState.setEnabled(true); _frontCull = new CullState(); _frontCull.setCullFace(Face.Front); _backCull = new CullState(); _backCull.setCullFace(Face.Back); _wireframeState.setAntialiased(antialiased); _noLights = new LightState(); _noLights.setGlobalAmbient(DEFAULT_OUTLINE_COLOR); _noLights.setEnabled(true); _noTexture = new TextureState(); _noTexture.setEnabled(true); _blendState = new BlendState(); _blendState.setSourceFunction(BlendState.SourceFunction.SourceAlpha); _blendState.setDestinationFunction(BlendState.DestinationFunction.OneMinusSourceAlpha); _blendState.setBlendEnabled(true); _blendState.setEnabled(true); }
lineBlendState.setEnabled(true); lineBlendState.setBlendEnabled(true); lineBlendState.setTestEnabled(true);
lineBlendState.setEnabled(true); lineBlendState.setBlendEnabled(true); lineBlendState.setTestEnabled(true);
lineBlendState.setEnabled(true); lineBlendState.setBlendEnabled(true); lineBlendState.setTestEnabled(true);
lineBlendState.setEnabled(true); lineBlendState.setBlendEnabled(true); lineBlendState.setTestEnabled(true);
_discardShadowFragments.setEnabled(true); _discardShadowFragments.setBlendEnabled(true); _discardShadowFragments.setTestEnabled(true);
_discardShadowFragments.setEnabled(true); _discardShadowFragments.setBlendEnabled(true); _discardShadowFragments.setTestEnabled(true);
tRenderer.getCamera().setLeft(cam.getLeft()); blend.setEnabled(false); final TextureState ts = (TextureState) fullScreenQuad.getWorldRenderState(RenderState.StateType.Texture); blend.setEnabled(true);