forked from LeenkxTeam/LNXSDK
Consolidate and update
This commit is contained in:
@ -48,7 +48,6 @@ class MeshObject extends Object {
|
||||
#if lnx_morph_target
|
||||
public var morphTarget: MorphTarget = null;
|
||||
#end
|
||||
public var vertexGroups: Map<String, Array<Vec4>> = null;
|
||||
|
||||
#if lnx_veloc
|
||||
public var prevMatrix = Mat4.identity();
|
||||
@ -240,6 +239,7 @@ class MeshObject extends Object {
|
||||
return setCulled(isShadow, true);
|
||||
}
|
||||
|
||||
#if rp_shadowmap
|
||||
if (isShadow && light.data.raw.type == "sun") {
|
||||
var frame = RenderPath.active.frame;
|
||||
if (shadowCameraCullFrame == frame && shadowCameraCullCamera == camera &&
|
||||
@ -270,10 +270,8 @@ class MeshObject extends Object {
|
||||
}
|
||||
}
|
||||
}
|
||||
#end
|
||||
}
|
||||
|
||||
//culled = false;
|
||||
//return culled;
|
||||
return setCulled(isShadow, false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user