List of usage examples for com.badlogic.gdx.graphics GL20 glUniform4f
public void glUniform4f(int location, float x, float y, float z, float w);
From source file:net.mgsx.game.examples.gpu.utils.ShaderProgramEx.java
License:Apache License
/** Sets the uniform with the given name. The {@link ShaderProgram} must be bound for this to work. * //from www . j a v a 2 s.c o m * @param name the name of the uniform * @param value1 the first value * @param value2 the second value * @param value3 the third value * @param value4 the fourth value */ public void setUniformf(String name, float value1, float value2, float value3, float value4) { GL20 gl = Gdx.gl20; checkManaged(); int location = fetchUniformLocation(name); gl.glUniform4f(location, value1, value2, value3, value4); }
From source file:net.mgsx.game.examples.gpu.utils.ShaderProgramEx.java
License:Apache License
public void setUniformf(int location, float value1, float value2, float value3, float value4) { GL20 gl = Gdx.gl20; checkManaged();/* w w w . ja v a2 s . c o m*/ gl.glUniform4f(location, value1, value2, value3, value4); }