Package com.badlogic.gdx.graphics.g3d.attributes

Examples of com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute


        renderData.positionChannel.data[positionOffset + ParticleChannels.ZOffset],
        qx, qy, qz, qw,
        scale, scale, scale);
      if(hasColor){
        int colorOffset = i*renderData.colorChannel.strideSize;
        ColorAttribute colorAttribute = (ColorAttribute)instance.materials.get(0).get(ColorAttribute.Diffuse);
        BlendingAttribute blendingAttribute = (BlendingAttribute)instance.materials.get(0).get(BlendingAttribute.Type);
        colorAttribute.color.r = renderData.colorChannel.data[colorOffset +ParticleChannels.RedOffset];
        colorAttribute.color.g = renderData.colorChannel.data[colorOffset +ParticleChannels.GreenOffset];
        colorAttribute.color.b = renderData.colorChannel.data[colorOffset +ParticleChannels.BlueOffset];
        if(blendingAttribute != null)
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.graphics.g3d.attributes.ColorAttribute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.