Jump to content

Shadows and spot lights with ShaderBuilder


Dad72
 Share

Recommended Posts

@NasimiAsl,

Shadows and spot lights do not work on the ground. I gave you an example on the playground.

http://www.babylonjs-playground.com/#E6OZX#87

terrain.material.specularColor = new BABYLON.Color3(0.5, 0.5, 0.5);
terrain.material.specularPower = 64;

do not work also

And In fact the lighting has no effect on the ground, so the textures are pale.

Thanks

Link to comment
Share on other sites

dear @Dad72 

normaly all standard material options dose not work in customShader (and shaderBuilder too )

but for use this options in any custom shader 2 option is recomended

1. make new repository from StandardShader and mix that with ShaderBuilder

  is easy way to get that i remember one time i start mix that and that work finally but need time for make PR that may be toke 2 or 3 day

2. overwrite all option you need in your shader

that is possible now but it is hard too retype all you need 

so if you have time for wait solution number 1 i can fix that cab be helpful a lot i wanna call that CustomMaterial

 

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...