We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8b0eb8 commit 594f3e6Copy full SHA for 594f3e6
1 file changed
hrt/prefab/rfx/CloudShadow.hx
@@ -70,8 +70,10 @@ class CloudShadow extends RendererFX {
70
if( dlwc.clouds != null )
71
dlwc.clouds.wrap = Repeat;
72
73
- dlwc.distort = Loader.currentInstance.load(distort.path).toTexture().clone();
74
- if( dlwc.distort != null ) dlwc.distort.wrap = Repeat;
+ if (distort != null && distort.path != null) {
+ dlwc.distort = Loader.currentInstance.load(distort.path).toTexture().clone();
75
+ if( dlwc.distort != null ) dlwc.distort.wrap = Repeat;
76
+ }
77
}
78
79
override function end(r:h3d.scene.Renderer, step:h3d.impl.RendererFX.Step) {
0 commit comments