Tabnine Logo
WaterFilter.setColorExtinction
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: jMonkeyEngine/jmonkeyengine

water.setShininess(0.3f);
water.setSunScale(1.0f);
water.setColorExtinction(new Vector3f(10.0f, 20.0f, 30.0f));
fpp.addFilter(water);
viewPort.addProcessor(fpp);
origin: jMonkeyEngine/jmonkeyengine

water2.setShininess(0.3f);
water2.setSunScale(1.0f);
water2.setColorExtinction(new Vector3f(10.0f, 20.0f, 30.0f));
fpp.addFilter(water2);
origin: jMonkeyEngine/jmonkeyengine

water.setReflectionDisplace(50);
water.setRefractionConstant(0.25f);
water.setColorExtinction(new Vector3f(30, 50, 70));
water.setCausticsIntensity(0.4f);        
water.setWaveScale(0.003f);
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.waterWaterFiltersetColorExtinction

Javadoc

Return at what depth the refraction color extinct the first value is for red the second is for green the third is for blue Play with those parameters to "trouble" the water default is (5.0, 20.0, 30.0f);

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
  • setDeepWaterColor
    sets the deep water color see setWaterColor for general color default is (0.0039f, 0.00196f, 0.145f,
  • 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

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • findViewById (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • From CI to AI: The AI layer in your organization
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