Sign in to follow this  

Shadows different in new Version?

Recommended Posts

When I use as my bjs lib, my shadows work.
But when I change it to:

I had to change to the preview version because it seems SphereEmitters emitRange does not work on the cdn version.

The shadows stop working.
What are the differences in the versions?

Here is the code for the shadows:

var sLight = new BABYLON.SpotLight("Spot-light", new BABYLON.Vector3(0,10,0), new BABYLON.Vector3(0,-1,0), 1.12, 32, scene);
    sLight.intensity = 0.6;

var spotShadow = new BABYLON.ShadowGenerator(1024, sLight);    
    spotShadow.useExponentialShadowMap = true;
    spotShadow.usePoissonSampling = true;




Not really sure what to do different.

Share this post

Link to post
Share on other sites

so the CDN one is 3.2
and the preview version is v3.3.0-alpha.12

So I guess the question is, what changed with shadows between these two versions?  I can not for the life of me get any shadows to come up with 3.3.0alpha12... but then again that's the version the playground is running and shadows work there still so my brain is about to explode.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.