congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
WaterFilter.setDeepWaterColor
Code IndexAdd Tabnine to your IDE (free)

How to use
setDeepWaterColor
method
in
com.jme3.water.WaterFilter

Best Java code snippets using com.jme3.water.WaterFilter.setDeepWaterColor (Showing top 4 results out of 315)

origin: jMonkeyEngine/jmonkeyengine

water.setUseFoam(false);
water.setUseRipples(false);
water.setDeepWaterColor(ColorRGBA.Brown);
water.setWaterColor(ColorRGBA.Brown.mult(2.0f));
water.setWaterTransparency(0.2f);
origin: jMonkeyEngine/jmonkeyengine

water2.setUseFoam(false);
water2.setUseRipples(false);
water2.setDeepWaterColor(ColorRGBA.Brown);
water2.setWaterColor(ColorRGBA.Brown.mult(2.0f));
water2.setWaterTransparency(0.2f);
water3.setFoamTexture((Texture2D) assetManager.loadTexture("Common/MatDefs/Water/Textures/foam2.jpg"));
water3.setRefractionStrength(0.2f);
water3.setDeepWaterColor(ColorRGBA.Red);
water3.setWaterColor(ColorRGBA.Red.mult(2.0f));
water3.setLightColor(ColorRGBA.Red);
origin: jMonkeyEngine/jmonkeyengine

water.setDeepWaterColor(new ColorRGBA().setAsSrgb(0.0039f, 0.00196f, 0.145f, 1.0f));
water.setUnderWaterFogDistance(80);
water.setWaterTransparency(0.12f);
origin: org.activecomponents.jadex/jadex-kernel-extension-envsupport-jmonkey

public Spatial draw(DrawableCombiner3d dc, Primitive3d primitive,
    SpaceObject sobj, ViewportJMonkey vp) {
  Vector3f lightDir = new Vector3f(1f, 1f, 1f);
  WaterFilter water = new WaterFilter(waterNode, lightDir);
  water.setWaterHeight(-0.2f);
  water.setUseFoam(false);
  water.setUseRipples(true);
  water.setDeepWaterColor(ColorRGBA.Black.mult(0.1f));
  water.setWaterColor(ColorRGBA.Black.mult(0.15f));
  water.setWaterTransparency(0.001f);
  water.setMaxAmplitude(0.3f);
  water.setWaveScale(0.008f);
  water.setSpeed(0.5f);
  water.setShoreHardness(1.0f);
  water.setRefractionConstant(0.2f);
  water.setShininess(0.3f);
  water.setSunScale(1.0f);
  water.setColorExtinction(new Vector3f(10.0f, 20.0f, 30.0f));
  
  waterNode.setUserData("water", water);
  
  return waterNode;
}
com.jme3.waterWaterFiltersetDeepWaterColor

Javadoc

sets the deep water color see setWaterColor for general color default is (0.0039f, 0.00196f, 0.145f,1.0f) (very dark blue)

Popular methods of WaterFilter

  • findLight
  • setFoamTexture
    Sets the foam texture
  • <init>
  • getReflectionScene
    Gets the scene which is used to render in the reflection map.
  • isNeedSaveReflectionScene
  • setCausticsTexture
    sets the texture to use to render caustics on the ground underwater
  • setColorExtinction
    Return at what depth the refraction color extinct the first value is for red the second is for green
  • setHeightTexture
    Sets the height texture
  • setMaxAmplitude
    Sets the maximum waves amplitude default is 1.0
  • setNormalTexture
    Sets the normal Texture
  • setRefractionConstant
    This is a constant related to the index of refraction (IOR) used to compute the fresnel term. F = R0
  • setShininess
    Sets the shinines factor of the water default is 0.7f
  • setRefractionConstant,
  • setShininess,
  • setShoreHardness,
  • setSpeed,
  • setSunScale,
  • setUseFoam,
  • setUseRipples,
  • setWaterColor,
  • setWaterHeight

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • getSharedPreferences (Context)
  • requestLocationUpdates (LocationManager)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • JCheckBox (javax.swing)
  • JFrame (javax.swing)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now