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

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

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

origin: jMonkeyEngine/jmonkeyengine

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

water2.setRefractionConstant(0.2f);
water2.setShininess(0.3f);
water2.setSunScale(1.0f);
water2.setColorExtinction(new Vector3f(10.0f, 20.0f, 30.0f));
fpp.addFilter(water2);
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.waterWaterFiltersetSunScale

Javadoc

Sets the scale of the sun for specular effect

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,
  • setUseFoam,
  • setUseRipples,
  • setWaterColor,
  • setWaterHeight

Popular in Java

  • Finding current android device location
  • getSystemService (Context)
  • getResourceAsStream (ClassLoader)
  • notifyDataSetChanged (ArrayAdapter)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • JFileChooser (javax.swing)
  • JList (javax.swing)
  • Top 12 Jupyter Notebook extensions
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