allow passing reflection texture separately from irradiance when calling loadIblFromTexture
This commit is contained in:
@@ -330,11 +330,11 @@ class ThermionViewerFFI extends ThermionViewer {
|
||||
///
|
||||
///
|
||||
///
|
||||
Future loadIblFromTexture(Texture texture, { double intensity = 30000, bool destroyExisting = true}) async {
|
||||
Future loadIblFromTexture(Texture texture, { Texture? reflectionsTexture = null, double intensity = 30000, bool destroyExisting = true}) async {
|
||||
await removeIbl(destroy: destroyExisting);
|
||||
|
||||
final ibl = await FFIIndirectLight.fromIrradianceTexture(texture,
|
||||
reflectionsTexture: texture, intensity: intensity);
|
||||
reflectionsTexture: reflectionsTexture, intensity: intensity);
|
||||
|
||||
await scene.setIndirectLight(ibl);
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ abstract class ThermionViewer {
|
||||
///
|
||||
///
|
||||
Future loadIblFromTexture(Texture texture,
|
||||
{double intensity = 30000, bool destroyExisting = true});
|
||||
{Texture? reflectionsTexture, double intensity = 30000, bool destroyExisting = true});
|
||||
|
||||
///
|
||||
/// Rotates the IBL & skybox.
|
||||
|
||||
Reference in New Issue
Block a user