-
public class Material.Builder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumMaterial.Builder.ShadowSamplingQuality
-
Method Summary
Modifier and Type Method Description Material.Builderpayload(@NonNull() Buffer buffer, @IntRange(from = 0) int size)Specifies the material data. Material.BuildersphericalHarmonicsBandCount(@IntRange(from = 0) int shBandCount)Sets the quality of the indirect lights computations. Material.BuildershadowSamplingQuality(Material.Builder.ShadowSamplingQuality quality)Set the quality of shadow sampling. Materialbuild(@NonNull() Engine engine)Creates and returns the Material object. -
-
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 datasize- 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.
-
shadowSamplingQuality
@NonNull() Material.Builder shadowSamplingQuality(Material.Builder.ShadowSamplingQuality quality)
Set the quality of shadow sampling. This is only taken into accountif this material is lit and in the surface domain.
-
-
-
-