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

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

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

origin: jMonkeyEngine/jmonkeyengine

water.setWaterTransparency(0.2f);
water.setMaxAmplitude(0.3f);
water.setWaveScale(0.008f);
water.setSpeed(0.7f);
water.setShoreHardness(1.0f);
origin: jMonkeyEngine/jmonkeyengine

water.setCenter(new Vector3f(9.628218f, -15.830074f, 199.23595f));
water.setRadius(260);
water.setWaveScale(0.003f);
water.setMaxAmplitude(2f);
water.setFoamExistence(new Vector3f(1f, 4, 0.5f));
water2.setWaterTransparency(0.2f);
water2.setMaxAmplitude(0.3f);
water2.setWaveScale(0.008f);
water2.setSpeed(0.7f);
water2.setShoreHardness(1.0f);
water3.setRadius(260);
water3.setWaterHeight(WATER_HEIGHT);
water3.setWaveScale(0.003f);
water3.setMaxAmplitude(2f);
water3.setFoamExistence(new Vector3f(1f, 4, 0.5f));
origin: jMonkeyEngine/jmonkeyengine

water.setColorExtinction(new Vector3f(30, 50, 70));
water.setCausticsIntensity(0.4f);        
water.setWaveScale(0.003f);
water.setMaxAmplitude(2f);
water.setFoamTexture((Texture2D) assetManager.loadTexture("Common/MatDefs/Water/Textures/foam2.jpg"));
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.waterWaterFiltersetWaveScale

Javadoc

Sets the scale factor of the waves height map the smaller the value the bigger the waves default is 0.005f

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
  • 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
  • setNormalTexture,
  • setRefractionConstant,
  • setShininess,
  • setShoreHardness,
  • setSpeed,
  • setSunScale,
  • setUseFoam,
  • setUseRipples,
  • setWaterColor,
  • setWaterHeight

Popular in Java

  • Updating database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Best plugins for Eclipse
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