Search in sources :

Example 1 with Matrix4Attribute

use of gaiasky.util.gdx.shader.attribute.Matrix4Attribute in project gaiasky by langurmonkey.

the class VelocityBufferComponent method setUpVelocityBufferMaterial.

public void setUpVelocityBufferMaterial(Material mat) {
    mat.set(new Matrix4Attribute(Matrix4Attribute.PrevProjView, new Matrix4()));
    mat.set(new Vector3Attribute(Vector3Attribute.DCamPos, new Vector3()));
}
Also used : Vector3Attribute(gaiasky.util.gdx.shader.attribute.Vector3Attribute) Matrix4Attribute(gaiasky.util.gdx.shader.attribute.Matrix4Attribute) Vector3(com.badlogic.gdx.math.Vector3) Matrix4(com.badlogic.gdx.math.Matrix4)

Aggregations

Matrix4 (com.badlogic.gdx.math.Matrix4)1 Vector3 (com.badlogic.gdx.math.Vector3)1 Matrix4Attribute (gaiasky.util.gdx.shader.attribute.Matrix4Attribute)1 Vector3Attribute (gaiasky.util.gdx.shader.attribute.Vector3Attribute)1