Codota Logo
AShader.applyParams
Code IndexAdd Codota to your IDE (free)

How to use
applyParams
method
in
org.rajawali3d.materials.shaders.AShader

Best Java code snippets using org.rajawali3d.materials.shaders.AShader.applyParams (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: Rajawali/Rajawali

@Override
public void applyParams() {
  super.applyParams();
  GLES20.glUniform3fv(muFogColorHandle, 1, mFogParams.mFogColor, 0);
}

origin: Rajawali/Rajawali

@Override
public void applyParams() {
  super.applyParams();
  GLES20.glUniform1f(muFarPlaneHandle, mFarPlane);
}

origin: Rajawali/Rajawali

@Override
public void applyParams() {
  super.applyParams();
  GLES20.glUniform1f(muAlphaHandle, mAlpha);
}
origin: Rajawali/Rajawali

@Override
public void applyParams() {
  super.applyParams();
  GLES20.glUniform1f(muColorInfluenceHandle, mColorInfluence);
}
origin: Rajawali/Rajawali

@Override
public void applyParams() {
  super.applyParams();
  
  if(mIsPlaying)
    mCurrentFrame = (int)Math.floor((SystemClock.elapsedRealtime() - mStartTime) * (mFPS / 1000.f)) % mNumFrames;
  
  GLES20.glUniform1f(muCurrentFrameHandle, mCurrentFrame);
  GLES20.glUniform2fv(muNumTilesHandle, 1, mNumTiles, 0);
}

origin: Rajawali/Rajawali

@Override
public void applyParams() {
  super.applyParams();
  GLES20.glUniform4fv(muColorHandle, 1, mColor, 0);
  GLES20.glUniform1f(muTimeHandle, mTime);
}
origin: Rajawali/Rajawali

@Override
public void applyParams() {
  super.applyParams();
  mLightModelViewProjectionMatrix4.toFloatArray(mLightModelViewProjectionMatrix);
  GLES20.glUniformMatrix4fv(muLightModelViewProjectionMatrixHandle, 1, false, mLightModelViewProjectionMatrix, 0);
}

origin: Rajawali/Rajawali

@Override
public void applyParams() {
  super.applyParams();
  GLES20.glUniform1f(muShadowInfluenceHandle, mShadowInfluence);
  GLES20.glUniform3f(muShadowLightDirHandle, (float)mLightDir.x, (float)mLightDir.y, (float)mLightDir.z);
}

origin: Rajawali/Rajawali

@Override
public void applyParams() {
  super.applyParams();
  GLES20.glUniform1f(muFogNearHandle, mFogParams.mNear);
  GLES20.glUniform1f(muFogFarHandle, mFogParams.mFar);
  GLES20.glUniform1i(muFogEnabledHandle, GLES20.GL_TRUE);
}

origin: Rajawali/Rajawali

@Override
public void applyParams() {
  super.applyParams();
  GLES20.glUniform4fv(muToonColor0Handle, 1, mToonColor0, 0);
  GLES20.glUniform4fv(muToonColor1Handle, 1, mToonColor1, 0);
  GLES20.glUniform4fv(muToonColor2Handle, 1, mToonColor2, 0);
  GLES20.glUniform4fv(muToonColor3Handle, 1, mToonColor3, 0);
}

origin: Rajawali/Rajawali

@Override
public void applyParams() {
  super.applyParams();
  
  if(mTextures == null) return;
  
  for(int i=0; i<mTextures.size(); i++)
  {
    ATexture texture = mTextures.get(i);
    GLES20.glUniform1f(muInfluenceHandles[i], texture.getInfluence());
    if(texture.getWrapType() == WrapType.REPEAT)
      GLES20.glUniform2fv(muRepeatHandles[i], 1, texture.getRepeat(), 0);
    if(texture.offsetEnabled())
      GLES20.glUniform2fv(muOffsetHandles[i], 1, texture.getOffset(), 0);
  }
}

origin: Rajawali/Rajawali

@Override
public void applyParams() {
  super.applyParams();
  if(mDecalTexture.offsetEnabled())
    GLES20.glUniform2fv(muDecalOffsetHandle, 1, mDecalTexture.getOffset(), 0);
  if(mDecalTexture.getWrapType() == ATexture.WrapType.REPEAT)
    GLES20.glUniform2fv(muDecalRepeatHandle, 1, mDecalTexture.getRepeat(), 0);
}
origin: Rajawali/Rajawali

@Override
public void applyParams() {
  super.applyParams();
origin: pondurii/vrVideo

@Override
public void applyParams() {
  super.applyParams();
  
  GLES20.glUniform1f(muColorInfluenceHandle, mColorInfluence);
}
 
origin: pondurii/vrVideo

@Override
public void applyParams() {
  super.applyParams();
  GLES20.glUniform1f(muFarPlaneHandle, mFarPlane);
}
 
origin: pondurii/vrVideo

@Override
public void applyParams() {
  super.applyParams();
  GLES20.glUniform3fv(muFogColorHandle, 1, mFogParams.mFogColor, 0);
}
 
origin: pondurii/vrVideo

@Override
public void applyParams() {
  super.applyParams();
  
  if(mIsPlaying)
    mCurrentFrame = (int)Math.floor((SystemClock.elapsedRealtime() - mStartTime) * (mFPS / 1000.f)) % mNumFrames;
  
  GLES20.glUniform1f(muCurrentFrameHandle, mCurrentFrame);
  GLES20.glUniform2fv(muNumTilesHandle, 1, mNumTiles, 0);
}
 
origin: pondurii/vrVideo

@Override
public void applyParams() {
  super.applyParams();
  GLES20.glUniform4fv(muColorHandle, 1, mColor, 0);
  GLES20.glUniform1f(muTimeHandle, mTime);
}
origin: pondurii/vrVideo

@Override
public void applyParams() {
  super.applyParams();
  GLES20.glUniform1f(muFogNearHandle, mFogParams.mNear);
  GLES20.glUniform1f(muFogFarHandle, mFogParams.mFar);
  GLES20.glUniform1i(muFogEnabledHandle, GLES20.GL_TRUE);
}
 
origin: pondurii/vrVideo

@Override
public void applyParams() {
  super.applyParams();
  GLES20.glUniform4fv(muToonColor0Handle, 1, mToonColor0, 0);
  GLES20.glUniform4fv(muToonColor1Handle, 1, mToonColor1, 0);
  GLES20.glUniform4fv(muToonColor2Handle, 1, mToonColor2, 0);
  GLES20.glUniform4fv(muToonColor3Handle, 1, mToonColor3, 0);
}
 
org.rajawali3d.materials.shadersAShaderapplyParams

Javadoc

applyParams() should be called on every frame. The shader parameters are set here.

Popular methods of AShader

  • initialize
  • addAttribute
    The attribute qualifier is used to declare variables that are passed to a vertex shader from OpenGL
  • addConst
    Add a constant
  • addGlobal
    Adds a global variable
  • addUniform
    Add a uniform. The uniform qualifier is used to declare global variables whose values are the same a
  • addVarying
    Varying variables provide the interface between the vertex shaders, the fragment shaders, and the fi
  • castInt
  • castMat3
  • castMat4
  • castVec2
  • castVec3
  • castVec4
  • castVec3,
  • castVec4,
  • divide,
  • getAttribLocation,
  • getInstanceForDataType,
  • getReturnTypeForOperation,
  • getUniformLocation,
  • main,
  • normalize

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Runner (org.openjdk.jmh.runner)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
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