congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
WaterFilter.findLight
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: jMonkeyEngine/jmonkeyengine

private DirectionalLight findLight(Node node) {
  for (Light light : node.getWorldLightList()) {
    if (light instanceof DirectionalLight) {
      return (DirectionalLight) light;
    }
  }
  for (Spatial child : node.getChildren()) {
    if (child instanceof Node) {
      return findLight((Node) child);
    }
  }
  return null;
}
origin: jMonkeyEngine/jmonkeyengine

DirectionalLight directionalLight = findLight((Node) reflectionScene);
if (directionalLight != null && useDirectionLightFromScene()) {
  lightDirection = directionalLight.getDirection();
origin: org.jmonkeyengine/jme3-effects

private DirectionalLight findLight(Node node) {
  for (Light light : node.getWorldLightList()) {
    if (light instanceof DirectionalLight) {
      return (DirectionalLight) light;
    }
  }
  for (Spatial child : node.getChildren()) {
    if (child instanceof Node) {
      return findLight((Node) child);
    }
  }
  return null;
}
origin: us.ihmc.thirdparty.jme/jme3-effects

private DirectionalLight findLight(Node node) {
  for (Light light : node.getWorldLightList()) {
    if (light instanceof DirectionalLight) {
      return (DirectionalLight) light;
    }
  }
  for (Spatial child : node.getChildren()) {
    if (child instanceof Node) {
      return findLight((Node) child);
    }
  }
  return null;
}
origin: info.projectkyoto/mms-engine

private DirectionalLight findLight(Node node) {
  for (Light light : node.getWorldLightList()) {
    if (light instanceof DirectionalLight) {
      return (DirectionalLight) light;
    }
  }
  for (Spatial child : node.getChildren()) {
    if (child instanceof Node) {
      return findLight((Node) child);
    }
  }
  return null;
}
origin: info.projectkyoto/mms-engine

DirectionalLight l = findLight((Node) reflectionScene);
if (l != null) {
  lightDirection = l.getDirection();
origin: us.ihmc.thirdparty.jme/jme3-effects

DirectionalLight l = findLight((Node) reflectionScene);
if (l != null) {
  lightDirection = l.getDirection();
origin: org.jmonkeyengine/jme3-effects

DirectionalLight directionalLight = findLight((Node) reflectionScene);
if (directionalLight != null && useDirectionLightFromScene()) {
  lightDirection = directionalLight.getDirection();
com.jme3.waterWaterFilterfindLight

Popular methods of WaterFilter

  • 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
  • setShininess
    Sets the shinines factor of the water default is 0.7f
  • setRefractionConstant,
  • setShininess,
  • setShoreHardness,
  • setSpeed,
  • setSunScale,
  • setUseFoam,
  • setUseRipples,
  • setWaterColor,
  • setWaterHeight

Popular in Java

  • Updating database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • Kernel (java.awt.image)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • JFrame (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 TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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