Codota Logo
VertexShader.setModelMatrix
Code IndexAdd Codota to your IDE (free)

How to use
setModelMatrix
method
in
org.rajawali3d.materials.shaders.VertexShader

Best Java code snippets using org.rajawali3d.materials.shaders.VertexShader.setModelMatrix (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: Rajawali/Rajawali

/**
 * Sets the model matrix. The model matrix holds the object's local coordinates.
 *
 * @param modelMatrix
 */
public void setModelMatrix(Matrix4 modelMatrix) {
  mModelMatrix = modelMatrix;//.getFloatValues();
  mVertexShader.setModelMatrix(mModelMatrix);
  mNormalMatrix.setAll(modelMatrix);
  try {
    mNormalMatrix.setToNormalMatrix();
  } catch (IllegalStateException exception) {
    RajLog.d("modelMatrix is degenerate (zero scale)...");
  }
  float[] matrix = mNormalMatrix.getFloatValues();
  mNormalFloats[0] = matrix[0];
  mNormalFloats[1] = matrix[1];
  mNormalFloats[2] = matrix[2];
  mNormalFloats[3] = matrix[4];
  mNormalFloats[4] = matrix[5];
  mNormalFloats[5] = matrix[6];
  mNormalFloats[6] = matrix[8];
  mNormalFloats[7] = matrix[9];
  mNormalFloats[8] = matrix[10];
  mVertexShader.setNormalMatrix(mNormalFloats);
}
origin: pondurii/vrVideo

/**
 * Sets the model matrix. The model matrix holds the object's local coordinates.
 *
 * @param modelMatrix
 */
public void setModelMatrix(Matrix4 modelMatrix) {
  mModelMatrix = modelMatrix;//.getFloatValues();
  mVertexShader.setModelMatrix(mModelMatrix);
  mNormalMatrix.setAll(modelMatrix).setToNormalMatrix();
  float[] matrix = mNormalMatrix.getFloatValues();
  mNormalFloats[0] = matrix[0];
  mNormalFloats[1] = matrix[1];
  mNormalFloats[2] = matrix[2];
  mNormalFloats[3] = matrix[4];
  mNormalFloats[4] = matrix[5];
  mNormalFloats[5] = matrix[6];
  mNormalFloats[6] = matrix[8];
  mNormalFloats[7] = matrix[9];
  mNormalFloats[8] = matrix[10];
  mVertexShader.setNormalMatrix(mNormalFloats);
}
org.rajawali3d.materials.shadersVertexShadersetModelMatrix

Popular methods of VertexShader

  • <init>
  • addAttribute
  • addGlobal
  • addShaderFragment
  • addUniform
  • addVarying
  • applyParams
  • buildShader
  • castMat3
  • castVec3
  • enableTime
  • getAttribLocation
  • enableTime,
  • getAttribLocation,
  • getGlobal,
  • getShaderString,
  • getUniformLocation,
  • hasCubeMaps,
  • hasSkyTexture,
  • initialize,
  • needsBuild,
  • normalize

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JPanel (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now