forked from LeenkxTeam/LNXSDK
Extend BRDF
This commit is contained in:
@ -89,6 +89,9 @@ class MeshObject extends Object {
|
||||
#end
|
||||
if (tilesheet != null) tilesheet.remove();
|
||||
if (Scene.active != null) Scene.active.meshes.remove(this);
|
||||
#if (rp_renderer == "Deferred")
|
||||
if (Scene.active != null) Scene.active.materialParamsDirty = true;
|
||||
#end
|
||||
data.refcount--;
|
||||
super.remove();
|
||||
}
|
||||
|
||||
@ -887,6 +887,9 @@ class Uniforms {
|
||||
case "_envmapIrradiance": {
|
||||
fa = Scene.active.world == null ? WorldData.getEmptyIrradiance() : Scene.active.world.probe.irradiance;
|
||||
}
|
||||
case "_materialParams": {
|
||||
fa = Scene.active.materialParamsBuffer;
|
||||
}
|
||||
#if lnx_clusters
|
||||
case "_lightsArray": {
|
||||
fa = LightObject.lightsArray;
|
||||
|
||||
Reference in New Issue
Block a user