Class GaiaTextureUtils

java.lang.Object
com.gaia3d.util.GaiaTextureUtils

public class GaiaTextureUtils extends Object
  • Constructor Details

    • GaiaTextureUtils

      public GaiaTextureUtils()
  • Method Details

    • getTexCoordPositiveQuadrant

      public static org.joml.Vector2d getTexCoordPositiveQuadrant(org.joml.Vector2d texCoord)
    • getColorOfTexture

      public static org.joml.Vector4d getColorOfTexture(GaiaTexture texture, org.joml.Vector2d texCoord)
    • getAverageColorOfTexture

      public static org.joml.Vector4d getAverageColorOfTexture(GaiaTexture texture, org.joml.Vector2d texCoord0, org.joml.Vector2d texCoord1, org.joml.Vector2d texCoord2)
    • clampTextureCoordinate

      public static void clampTextureCoordinate(org.joml.Vector2d texCoord, double error)