com.badlogic.gdx.math.Matrix3 Java Examples

The following examples show how to use com.badlogic.gdx.math.Matrix3. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Filter.java    From uracer-kotd with Apache License 2.0 5 votes vote down vote up
protected T setParams (Parameter param, Matrix3 value) {
	if (!programBegan) {
		programBegan = true;
		program.begin();
	}
	program.setUniformMatrix(param.mnemonic(), value);
	return (T)this;
}
 
Example #2
Source File: Filter.java    From RuinsOfRevenge with MIT License 5 votes vote down vote up
protected T setParams( Parameter param, Matrix3 value ) {
	if( !programBegan ) {
		programBegan = true;
		program.begin();
	}
	program.setUniformMatrix( param.mnemonic(), value );
	return (T)this;
}
 
Example #3
Source File: UniformBatcher.java    From gdx-vfx with Apache License 2.0 4 votes vote down vote up
/** Updates shader's uniform of mat3 type. */
public UniformBatcher set(String uniformName, Matrix3 value) {
    program.setUniformMatrix(uniformName, value);
    return this;
}
 
Example #4
Source File: Filter.java    From uracer-kotd with Apache License 2.0 4 votes vote down vote up
protected T setParam (Parameter param, Matrix3 value) {
	program.begin();
	program.setUniformMatrix(param.mnemonic(), value);
	program.end();
	return (T)this;
}
 
Example #5
Source File: Filter.java    From RuinsOfRevenge with MIT License 4 votes vote down vote up
protected T setParam( Parameter param, Matrix3 value ) {
	program.begin();
	program.setUniformMatrix( param.mnemonic(), value );
	program.end();
	return (T)this;
}
 
Example #6
Source File: ShaderVfxEffect.java    From gdx-vfx with Apache License 2.0 2 votes vote down vote up
/**
 * Updates shader's uniform of mat3 type.
 * <p/>
 * <b>NOTE:</b> This is an utility method that will bind/unbind the shader program internally on every call.
 * If you need to update multiple uniforms, please consider calling methods directly from {@link ShaderProgram}.
 */
protected void setUniform(String uniformName, Matrix3 value) {
    program.begin();
    program.setUniformMatrix(uniformName, value);
    program.end();
}