pinkmilkshake Posted September 10, 2018 Share Posted September 10, 2018 I'm wondering if anyone might know the solution to my issue, so far I cannot find anything on it. Does anyone know how to stop this bright spot? It doesn't matter where I move the camera, there is a big bright spot directly underneath it at all times. You can see it in some of the examples on the babylonjs website: https://www.babylonjs-playground.com/#L76FB1#0 In the picture is a plane: var ground = BABYLON.MeshBuilder.CreateGround('ground1', {height:128, width:128, subdivisions: 128}, this.scene) var material = new BABYLON.StandardMaterial('grass', this.scene) material.ambientTexture = new BABYLON.Texture('textures/grass.jpg', this.scene) material.ambientTexture.uScale = 128 material.ambientTexture.vScale = 128 material.ambientColor = new BABYLON.Color3(1, 1, 1) ground.material = material The light is a hemispheric light: var light = new BABYLON.HemisphericLight(name, new BABYLON.Vector3(0,1,0), this.scene); Zoomed in: Zoomed way out: \ Quote Link to comment Share on other sites More sharing options...
Guest Posted September 10, 2018 Share Posted September 10, 2018 Hello and welcome! This is the specular spot. You can disable it on your material with material.specularColor = BABYLON.Color.Black(); Quote Link to comment Share on other sites More sharing options...
pinkmilkshake Posted September 10, 2018 Author Share Posted September 10, 2018 Thank you for you help. Under what circumstances would you want it? If I was to guess I would think it’s for small shiny things but isn’t the hemispheric light meant to mimic ambient light? Why would there be a bright spot? Quote Link to comment Share on other sites More sharing options...
Guest Posted September 11, 2018 Share Posted September 11, 2018 It could be used to still simulate shiny surface (it is totally up to the artist actually so this is why the option exists). Hemi light are like ambient lights but could also be use to simulate directional lights Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.