Skip to main content

Stop text in postRender being effect by color of LinearFog

No replies
Joined: 2009-02-26

I'm using Canvas3D postRender to draw text to the screen. For example:

public void postRender() {
getGraphics2D().drawString("Shattered World", 30, 30);


and it will come out something like:

I have a problem where if a scene has LinearFog then the color of the text is effected by the color of the fog. For example:

Is there a way to draw text to the screen in postRender without it being effected by fog color?