Package com.jme.scene.shape

Examples of com.jme.scene.shape.Quad.updateRenderState()


            as.setTestFunction(BlendState.TestFunction.GreaterThan);
            as.setTestEnabled(true);
            ret.setRenderState(as);

            ret.setLightCombineMode(LightCombineMode.Off);
            ret.updateRenderState();
            this.quad = ret;
            imgWidth = w;
            imgHeight = h;
            imgFactor = factor;
        }
View Full Code Here


    debugQuad.setCullMode( SceneElement.CULL_NEVER );
    debugQuad.setLightCombineMode( LightState.OFF );
    TextureState ts = display.getRenderer().createTextureState();
    ts.setTexture( waterEffectRenderPass.getTextureReflect() );
    debugQuad.setRenderState( ts );
    debugQuad.updateRenderState();
    debugQuad.getLocalTranslation().set( quadWidth * 0.6f, quadHeight * 1.0f, 1.0f );
    debugQuadsNode.attachChild( debugQuad );

    if( waterEffectRenderPass.getTextureRefract() != null ) {
      debugQuad = new Quad( "refractionQuad", quadWidth, quadHeight );
View Full Code Here

      debugQuad.setCullMode( SceneElement.CULL_NEVER );
      debugQuad.setLightCombineMode( LightState.OFF );
      ts = display.getRenderer().createTextureState();
      ts.setTexture( waterEffectRenderPass.getTextureRefract() );
      debugQuad.setRenderState( ts );
      debugQuad.updateRenderState();
      debugQuad.getLocalTranslation().set( quadWidth * 0.6f, quadHeight * 2.1f, 1.0f );
      debugQuadsNode.attachChild( debugQuad );
    }

        if( waterEffectRenderPass.getTextureDepth() != null ) {
View Full Code Here

            debugQuad.setCullMode( SceneElement.CULL_NEVER );
            debugQuad.setLightCombineMode( LightState.OFF );
            ts = display.getRenderer().createTextureState();
            ts.setTexture( waterEffectRenderPass.getTextureDepth() );
            debugQuad.setRenderState( ts );
            debugQuad.updateRenderState();
            debugQuad.getLocalTranslation().set( quadWidth * 0.6f, quadHeight * 3.2f, 1.0f );
            debugQuadsNode.attachChild( debugQuad );
        }
    }
}
View Full Code Here

    debugQuad.setCullMode( SceneElement.CULL_NEVER );
    debugQuad.setLightCombineMode( LightState.OFF );
    TextureState ts = display.getRenderer().createTextureState();
    ts.setTexture( waterEffectRenderPass.getTextureReflect() );
    debugQuad.setRenderState( ts );
    debugQuad.updateRenderState();
    debugQuad.getLocalTranslation().set( quadWidth * 0.6f, quadHeight * 1.0f, 1.0f );
    debugQuadsNode.attachChild( debugQuad );

    if( waterEffectRenderPass.getTextureRefract() != null ) {
      debugQuad = new Quad( "refractionQuad", quadWidth, quadHeight );
View Full Code Here

      debugQuad.setCullMode( SceneElement.CULL_NEVER );
      debugQuad.setLightCombineMode( LightState.OFF );
      ts = display.getRenderer().createTextureState();
      ts.setTexture( waterEffectRenderPass.getTextureRefract() );
      debugQuad.setRenderState( ts );
      debugQuad.updateRenderState();
      debugQuad.getLocalTranslation().set( quadWidth * 0.6f, quadHeight * 2.1f, 1.0f );
      debugQuadsNode.attachChild( debugQuad );
    }

        if( waterEffectRenderPass.getTextureDepth() != null ) {
View Full Code Here

            debugQuad.setCullMode( SceneElement.CULL_NEVER );
            debugQuad.setLightCombineMode( LightState.OFF );
            ts = display.getRenderer().createTextureState();
            ts.setTexture( waterEffectRenderPass.getTextureDepth() );
            debugQuad.setRenderState( ts );
            debugQuad.updateRenderState();
            debugQuad.getLocalTranslation().set( quadWidth * 0.6f, quadHeight * 3.2f, 1.0f );
            debugQuadsNode.attachChild( debugQuad );
        }
  }
}
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.