HoloLite

Specular lighting is gone after upgrading from beta5 to rc1

Recommended Posts

Nothing should have changed here that I know, I can also still see the specular effects in all the test PG I looked at. Do you have more precision on how you are using it (this might help troubleshooting) ?

Share this post


Link to post
Share on other sites

I am using 2 lights: hemi and directional. The code fragment is the following.

The this.light is directional light. The this.hemilight is hemispheric light.

     
                this.light.intensity = 2.0;
                this.light.direction = new BABYLON.Vector3(0.1, 0.9, 0.1);
                this.light.diffuse = new BABYLON.Color3(1, 1, 1);
                this.light.specular = new BABYLON.Color3(0.5, 0.5, 0.5);

                this.hemiLight.intensity = 1.0;
                this.hemiLight.direction = new BABYLON.Vector3(0.1, 0.9, 0.1);
                this.setSkyboxSettings("material.inclination", this.skyboxMaterial.inclination, 0); 
                

This would give the specular lighting effect in the app, until rc1.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.