Jump to content

Specular lighting is gone after upgrading from beta5 to rc1


HoloLite
 Share

Recommended Posts

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.

Link to comment
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...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...