Class MDLSkyCubeTexture

All Implemented Interfaces:
NSObjectProtocol, MDLNamed, ObjCProtocol

public class MDLSkyCubeTexture
extends MDLTexture
Since:
Available in iOS 9.0 and later.
  • Constructor Details

    • MDLSkyCubeTexture

      public MDLSkyCubeTexture()
    • MDLSkyCubeTexture

      protected MDLSkyCubeTexture​(NSObject.Handle h, long handle)
    • MDLSkyCubeTexture

      protected MDLSkyCubeTexture​(NSObject.SkipInit skipInit)
    • MDLSkyCubeTexture

      public MDLSkyCubeTexture​(String name, MDLTextureChannelEncoding channelEncoding, VectorInt2 textureDimensions, float turbidity, float sunElevation, float upperAtmosphereScattering, float groundAlbedo)
    • MDLSkyCubeTexture

      public MDLSkyCubeTexture​(String name, MDLTextureChannelEncoding channelEncoding, VectorInt2 textureDimensions, float turbidity, float sunElevation, float sunAzimuth, float upperAtmosphereScattering, float groundAlbedo)
      Since:
      Available in iOS 11.0 and later.
    • MDLSkyCubeTexture

      public MDLSkyCubeTexture​(NSData pixelData, boolean topLeftOrigin, String name, VectorInt2 dimensions, long rowStride, long channelCount, MDLTextureChannelEncoding channelEncoding, boolean isCube)
    • MDLSkyCubeTexture

      public MDLSkyCubeTexture​(String name)
    • MDLSkyCubeTexture

      public MDLSkyCubeTexture​(String name, NSBundle bundleOrNil)
    • MDLSkyCubeTexture

      public MDLSkyCubeTexture​(String name, MDLAssetResolver resolver)
      Since:
      Available in iOS 12.0 and later.
  • Method Details

    • getTurbidity

      public float getTurbidity()
    • setTurbidity

      public void setTurbidity​(float v)
    • getSunElevation

      public float getSunElevation()
    • setSunElevation

      public void setSunElevation​(float v)
    • getSunAzimuth

      public float getSunAzimuth()
      Since:
      Available in iOS 11.0 and later.
    • setSunAzimuth

      public void setSunAzimuth​(float v)
      Since:
      Available in iOS 11.0 and later.
    • getUpperAtmosphereScattering

      public float getUpperAtmosphereScattering()
    • setUpperAtmosphereScattering

      public void setUpperAtmosphereScattering​(float v)
    • getGroundAlbedo

      public float getGroundAlbedo()
    • setGroundAlbedo

      public void setGroundAlbedo​(float v)
    • getHorizonElevation

      public float getHorizonElevation()
    • setHorizonElevation

      public void setHorizonElevation​(float v)
    • getGroundColor

      public CGColor getGroundColor()
    • setGroundColor

      public void setGroundColor​(CGColor v)
    • getGamma

      public float getGamma()
    • setGamma

      public void setGamma​(float v)
    • getExposure

      public float getExposure()
    • setExposure

      public void setExposure​(float v)
    • getBrightness

      public float getBrightness()
    • setBrightness

      public void setBrightness​(float v)
    • getContrast

      public float getContrast()
    • setContrast

      public void setContrast​(float v)
    • getSaturation

      public float getSaturation()
    • setSaturation

      public void setSaturation​(float v)
    • getHighDynamicRangeCompression

      public VectorFloat2 getHighDynamicRangeCompression()
    • setHighDynamicRangeCompression

      public void setHighDynamicRangeCompression​(VectorFloat2 v)
    • init

      protected long init​(String name, MDLTextureChannelEncoding channelEncoding, VectorInt2 textureDimensions, float turbidity, float sunElevation, float upperAtmosphereScattering, float groundAlbedo)
    • init

      protected long init​(String name, MDLTextureChannelEncoding channelEncoding, VectorInt2 textureDimensions, float turbidity, float sunElevation, float sunAzimuth, float upperAtmosphereScattering, float groundAlbedo)
      Since:
      Available in iOS 11.0 and later.
    • updateTexture

      public void updateTexture()
    • create

      protected static long create​(String name)
    • create

      protected static long create​(String name, NSBundle bundleOrNil)
    • create

      protected static long create​(String name, MDLAssetResolver resolver)
      Since:
      Available in iOS 12.0 and later.
    • newTextureCube

      public static MDLSkyCubeTexture newTextureCube​(List<String> names)
    • newTextureCube

      public static MDLSkyCubeTexture newTextureCube​(List<String> names, NSBundle bundleOrNil)
    • newIrradianceTextureCube

      public static MDLSkyCubeTexture newIrradianceTextureCube​(MDLTexture texture, String name, VectorInt2 dimensions)
    • newIrradianceTextureCube

      public static MDLSkyCubeTexture newIrradianceTextureCube​(MDLTexture texture, String name, VectorInt2 dimensions, float roughness)