removed the comment and returned a final modification to the method.
This commit is contained in:
parent
f016469933
commit
c2219ecce5
@ -204,7 +204,7 @@ public abstract class AbstractShadowRenderer implements SceneProcessor, Savable,
|
|||||||
*
|
*
|
||||||
* @param postShadowMat
|
* @param postShadowMat
|
||||||
*/
|
*/
|
||||||
protected void setPostShadowMaterial(Material postShadowMat) {
|
protected final void setPostShadowMaterial(Material postShadowMat) {
|
||||||
this.postshadowMat = postShadowMat;
|
this.postshadowMat = postShadowMat;
|
||||||
postshadowMat.setFloat("ShadowMapSize", shadowMapSize);
|
postshadowMat.setFloat("ShadowMapSize", shadowMapSize);
|
||||||
for (int i = 0; i < nbShadowMaps; i++) {
|
for (int i = 0; i < nbShadowMaps; i++) {
|
||||||
|
@ -136,7 +136,6 @@ public class DirectionalLightShadowRenderer extends AbstractShadowRenderer {
|
|||||||
@Override
|
@Override
|
||||||
protected void updateShadowCams(Camera viewCam) {
|
protected void updateShadowCams(Camera viewCam) {
|
||||||
|
|
||||||
// it needs to support for editors
|
|
||||||
if (light == null) {
|
if (light == null) {
|
||||||
logger.warning("The light can't be null for a " + getClass().getName());
|
logger.warning("The light can't be null for a " + getClass().getName());
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user