Package 

Class Material.Builder

    • Method Detail

      • payload

        @NonNull() Material.Builder payload(@NonNull() Buffer buffer, @IntRange(from = 0) int size)

        Specifies the material data. The material data is a binary blob produced bylibfilamat or by matc.

        Parameters:
        buffer - buffer containing material data
        size - size of the material data in bytes
      • sphericalHarmonicsBandCount

        @NonNull() Material.Builder sphericalHarmonicsBandCount(@IntRange(from = 0) int shBandCount)

        Sets the quality of the indirect lights computations. This is only taken into accountif this material is lit and in the surface domain. This setting will affect theIndirectLight computation if one is specified on the Scene and Spherical Harmonicsare used for the irradiance.

        Parameters:
        shBandCount - Number of spherical harmonic bands.
      • build

        @NonNull() Material build(@NonNull() Engine engine)

        Creates and returns the Material object.

        Parameters:
        engine - reference to the Engine instance to associate this Material with